Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/cpp/pragma-2.c @ 132:d34655255c78
update gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 10:21:07 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* Verify that preprocessor does not insert redundant newlines |
2 after #pragma, also check this for #include, #define and #undef */ | |
3 /* { dg-do compile } */ | |
4 /* { dg-options "-dD" } */ | |
5 #include <stdio.h> | |
6 | |
7 #undef unknow_def | |
8 | |
9 int main () { | |
10 | |
11 #pragma unknown | |
12 {} | |
13 error; | |
14 /* { dg-error "undeclared" "undeclared-variable message" { target *-*-* } .-1 } */ | |
15 /* { dg-message "function it appears in" "reminder message" { target *-*-* } .-2 } */ | |
16 } |