summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend/verify.c
diff options
context:
space:
mode:
authorAndy Gibbs <andyg1001@hotmail.co.uk>2012-10-19 12:36:49 +0000
committerAndy Gibbs <andyg1001@hotmail.co.uk>2012-10-19 12:36:49 +0000
commitac51de6ec2f01fce1d9dadf59a86ffe825c42bc7 (patch)
tree0791be5a26a231653d9a6c1aa0172dca1afc4662 /clang/test/Frontend/verify.c
parent8eb77d847e8a5cba03682bd948613c7162e56a86 (diff)
downloadbcm5719-llvm-ac51de6ec2f01fce1d9dadf59a86ffe825c42bc7.tar.gz
bcm5719-llvm-ac51de6ec2f01fce1d9dadf59a86ffe825c42bc7.zip
Fix directive parsing in VerifyDiagnosticConsumer so that it ensures that "expected" is at the start of the word and will no longer accept typos such as "junkexpected-*" as a valid "expected-*" directive. A very few test-cases had to be amended to adhere to the new rule.
Patch reviewed by David Blaikie. llvm-svn: 166279
Diffstat (limited to 'clang/test/Frontend/verify.c')
-rw-r--r--clang/test/Frontend/verify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Frontend/verify.c b/clang/test/Frontend/verify.c
index f8d0f4282b4..8b4edc5a760 100644
--- a/clang/test/Frontend/verify.c
+++ b/clang/test/Frontend/verify.c
@@ -22,7 +22,7 @@
#if 0
// expected-error {{should be ignored}}
#endif
-
+// eexpected-error {{should also be ignored: unrecognised directive}}
#error should not be ignored
// expected-error@-1 1+ {{should not be ignored}}
OpenPOWER on IntegriCloud