aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/cpp/syshdr3.c
blob: 15749ff9961ec3ef7a2d44714cc674361b798581 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Contributed by Dodji Seketeli <dodji@redhat.com> */
/* Origin: PR preprocessor/7263 */
/* { dg-options "-pedantic -std=c89 -ftrack-macro-expansion=1" } */
/* { dg-do compile } */

/* This tests the proprer suppression of warning coming from macro
   defined in system headers and expanded in a non-system header
   location.  */
#include "syshdr3.h"

static _Complex float c = _Complex_I + _Complex_I; /* These macros are defined in
						    system header so we should
						    have no warning here.  */
U_LL u = ONE_ULL; /* Likewise here.  */

unsigned long long v = 1ULL; /* { dg-warning "long long" } */