aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/cpp/warn-long-long-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/cpp/warn-long-long-2.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/cpp/warn-long-long-2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/cpp/warn-long-long-2.c b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/warn-long-long-2.c
new file mode 100644
index 000000000..7b074a37c
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/cpp/warn-long-long-2.c
@@ -0,0 +1,6 @@
+// { dg-do preprocess }
+// { dg-options "-std=gnu99 -fdiagnostics-show-option -Wtraditional -Werror=long-long" }
+/* { dg-message "some warnings being treated as errors" "" {target "*-*-*"} 0 } */
+#if 0LL // { dg-error "traditional C rejects the \"LL\" suffix .-Werror=long-long." }
+ // { dg-error "use of C99 long long integer constant .-Werror=long-long." "use long long" { target *-*-* } 4 }
+#endif