summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pragma-diag-2.c
blob: 588d618955cbb0474550e53ea4778d730264be8d (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-options "-std=c89 -pedantic -Wno-long-long" } */
/* { dg-message "warnings being treated as errors" "" { target *-*-* } 0 } */

int i = 0LL;

#pragma GCC diagnostic error "-Wlong-long"

int j = 1LL; /* { dg-error "long long" } */