gcc/ChangeLog:
[official-gcc.git] / gcc / testsuite / g++.dg / cpp / syshdr3.C
blob39168239a39e1908041ccde7b2154e2cdaab25cb
1 /* Contributed by Dodji Seketeli <dodji@redhat.com> */
2 /* Origin: PR preprocessor/7263 */
3 /* { dg-options "-pedantic -std=c++98 -ftrack-macro-expansion=1" } */
4 /* { dg-do compile } */
6 /* This tests the proprer suppression of warning coming from macro
7    defined in system headers and expanded in a non-system header
8    location.  */
9 #include "syshdr3.h"
11 static _Complex float c = _Complex_I + _Complex_I; /* These macros are defined in
12                                                     system header so we should
13                                                     have no warning here.  */
14 U_LL u = ONE_ULL; /* Likewise here.  */
16 unsigned long long v = 1ULL; /* { dg-warning "long long" } */