diff options
author | Andy Gibbs <andyg1001@hotmail.co.uk> | 2012-10-19 12:36:49 +0000 |
---|---|---|
committer | Andy Gibbs <andyg1001@hotmail.co.uk> | 2012-10-19 12:36:49 +0000 |
commit | ac51de6ec2f01fce1d9dadf59a86ffe825c42bc7 (patch) | |
tree | 0791be5a26a231653d9a6c1aa0172dca1afc4662 /clang/test/CXX/expr | |
parent | 8eb77d847e8a5cba03682bd948613c7162e56a86 (diff) | |
download | bcm5719-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/CXX/expr')
-rw-r--r-- | clang/test/CXX/expr/expr.prim/expr.prim.general/p3-0x.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.general/p3-0x.cpp b/clang/test/CXX/expr/expr.prim/expr.prim.general/p3-0x.cpp index 030c90c525c..b84cec61c31 100644 --- a/clang/test/CXX/expr/expr.prim/expr.prim.general/p3-0x.cpp +++ b/clang/test/CXX/expr/expr.prim/expr.prim.general/p3-0x.cpp @@ -91,11 +91,11 @@ namespace Static { namespace PR12564 { struct Base { - void bar(Base&) {} // unexpected-note {{here}} + void bar(Base&) {} // FIXME: expected-note {{here}} }; struct Derived : Base { // FIXME: This should be accepted. - void foo(Derived& d) noexcept(noexcept(d.bar(d))) {} // unexpected-error {{cannot bind to a value of unrelated type}} + void foo(Derived& d) noexcept(noexcept(d.bar(d))) {} // expected-error {{cannot bind to a value of unrelated type}} }; } |