Document gcov-io (PR gcov-profile/84735).
[official-gcc.git] / gcc / testsuite / gcc.dg / cpp / Wunknown-pragmas-1.c
blob06a244e097d3162e29da78b093b12f3688528f2a
1 /* Copyright 2003 Free Software Foundation, Inc. */
3 /* { dg-do compile } */
4 /* { dg-options "-Wunknown-pragmas" } */
6 /* Make sure we get warnings in the expected lines. */
8 #pragma unknown1 /* { dg-warning "-:unknown1" "unknown1" } */
10 #define COMMA ,
11 #define FOO(x) x
12 #define BAR(x) _Pragma("unknown_before") x
13 #define BAZ(x) x _Pragma("unknown_after")
15 int _Pragma("unknown2") bar1; /* { dg-warning "-:unknown2" "unknown2" } */
17 FOO(int _Pragma("unknown3") bar2); /* { dg-warning "-:unknown3" "unknown3" } */
19 int BAR(bar3); /* { dg-warning "-:unknown_before" "unknown_before 1" } */
21 BAR(int bar4); /* { dg-warning "-:unknown_before" "unknown_before 2" } */
23 int BAZ(bar5); /* { dg-warning "-:unknown_after" "unknown_after 1" } */
25 int BAZ(bar6;) /* { dg-warning "-:unknown_after" "unknown_after 2" } */
27 FOO(int bar7; _Pragma("unknown4")) /* { dg-warning "-:unknown4" "unknown4" } */
29 #pragma unknown5 /* { dg-warning "-:unknown5" "unknown5" } */