summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-12-07 00:48:47 +0000
committerChris Lattner <sabre@nondot.org>2009-12-07 00:48:47 +0000
commit045cbffb6573be84237047c53d8d52f304e204b4 (patch)
tree573b91d8cca339ac3f3589a1e8c76a29340077aa /clang/test/Parser
parent662908cdcfcca1a2832b6580838fb592324474b8 (diff)
downloadbcm5719-llvm-045cbffb6573be84237047c53d8d52f304e204b4.tar.gz
bcm5719-llvm-045cbffb6573be84237047c53d8d52f304e204b4.zip
fix a crash on invalid I found when working on something unrelated.
llvm-svn: 90729
Diffstat (limited to 'clang/test/Parser')
-rw-r--r--clang/test/Parser/cxx-friend.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-friend.cpp b/clang/test/Parser/cxx-friend.cpp
index 14b31af761d..6505ad0f6f7 100644
--- a/clang/test/Parser/cxx-friend.cpp
+++ b/clang/test/Parser/cxx-friend.cpp
@@ -30,3 +30,11 @@ class B {
void f(A *a) { a->f(); }
};
+
+
+
+
+template <typename t1, typename t2> class some_template;
+friend // expected-error {{'friend' used outside of class}}
+some_template<foo, bar>& // expected-error {{use of undeclared identifier 'foo'}}
+ ; // expected-error {{expected unqualified-id}}
OpenPOWER on IntegriCloud