1 /* Copyright (C) 2001 Free Software Foundation, Inc. */
2
3 /* { dg-do compile } */
4 /* { dg-options "-std=gnu99 -pedantic -Wtraditional -ftrack-macro-expansion=0" } */
5
6 /* Tests diagnostics are suppressed for some macros defined in system
7 headers. */
8
9 /* Source: Neil Booth, 15 Jan 2001. */
10
11 #include "syshdr.h"
12
13 #define uint 1U
14 #define fl 1.0f
15 #define ld 1.0L
16
17 int
main()18 main ()
19 {
20 int u1 = uint; /* { dg-warning "traditional C rejects" } */
21 int u2 = sys_uint; /* { dg-bogus "traditional C rejects" } */
22 float f1 = fl; /* { dg-warning "traditional C rejects" } */
23 float f2 = sys_fl; /* { dg-bogus "traditional C rejects" } */
24 long double ld1 = ld; /* { dg-warning "traditional C rejects" } */
25 long double l2 = sys_ld; /* { dg-bogus "traditional C rejects" } */
26
27 return 0;
28 }
29