diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/c-c++-common/cpp/warning-zero-location.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/c-c++-common/cpp/warning-zero-location.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/c-c++-common/cpp/warning-zero-location.c b/gcc-4.9/gcc/testsuite/c-c++-common/cpp/warning-zero-location.c new file mode 100644 index 000000000..ca2e102bb --- /dev/null +++ b/gcc-4.9/gcc/testsuite/c-c++-common/cpp/warning-zero-location.c @@ -0,0 +1,8 @@ +/* + { dg-options "-D _GNU_SOURCE -fdiagnostics-show-caret" } + { dg-do compile } + */ + +#define _GNU_SOURCE /* { dg-warning "redefined" } */ + +/* { dg-message "" "#define _GNU_SOURCE" {target *-*-* } 0 } |