summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-06-28 07:51:56 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-06-28 07:51:56 +0000
commit608c0b65d78531d1713a02f34a9b876deefb4943 (patch)
treebb5896cb8c9ac22d95f5d2371956fc27c6a14b18 /clang/test
parent420a4ed6528b1422ae624fbbc501a6cd2d3dabb5 (diff)
downloadbcm5719-llvm-608c0b65d78531d1713a02f34a9b876deefb4943.tar.gz
bcm5719-llvm-608c0b65d78531d1713a02f34a9b876deefb4943.zip
Add warning flag -Winvalid-pp-token for preprocessing-tokens which have
undefined behaviour, and move the diagnostic for '' from an Error into an ExtWarn in this group. This is important for some users of the preprocessor, and is necessary for gcc compatibility. llvm-svn: 159335
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Misc/warning-flags-enabled.c2
-rw-r--r--clang/test/Misc/warning-flags.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/clang/test/Misc/warning-flags-enabled.c b/clang/test/Misc/warning-flags-enabled.c
index 1c1c38f864d..7ef5c94dbc8 100644
--- a/clang/test/Misc/warning-flags-enabled.c
+++ b/clang/test/Misc/warning-flags-enabled.c
@@ -3,9 +3,9 @@
// This shows warnings which are on by default.
// We just check a few to make sure it's doing something sensible.
//
+// CHECK: ext_unterminated_string
// CHECK: warn_condition_is_assignment
// CHECK: warn_null_arg
-// CHECK: warn_unterminated_string
// RUN: diagtool show-enabled -Wno-everything %s | count 0
diff --git a/clang/test/Misc/warning-flags.c b/clang/test/Misc/warning-flags.c
index 2799de584c3..3b28fd85d7f 100644
--- a/clang/test/Misc/warning-flags.c
+++ b/clang/test/Misc/warning-flags.c
@@ -17,7 +17,7 @@ This test serves two purposes:
The list of warnings below should NEVER grow. It should gradually shrink to 0.
-CHECK: Warnings without flags (232):
+CHECK: Warnings without flags (230):
CHECK-NEXT: ext_anonymous_struct_union_qualified
CHECK-NEXT: ext_binary_literal
CHECK-NEXT: ext_cast_fn_obj
@@ -245,8 +245,6 @@ CHECK-NEXT: warn_undef_protocolref
CHECK-NEXT: warn_undefined_internal
CHECK-NEXT: warn_unknown_analyzer_checker
CHECK-NEXT: warn_unknown_method_family
-CHECK-NEXT: warn_unterminated_char
-CHECK-NEXT: warn_unterminated_string
CHECK-NEXT: warn_use_out_of_scope_declaration
CHECK-NEXT: warn_weak_identifier_undeclared
CHECK-NEXT: warn_weak_import
OpenPOWER on IntegriCloud