summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-06-27 00:27:47 +0000
committerAnders Carlsson <andersca@mac.com>2009-06-27 00:27:47 +0000
commit74d7f0dd652bdb3fd6fdbd3fd582829c8b4d5deb (patch)
treeaaad2c7877334e8327072d45bea6848086dac47d /clang/test
parent8e5f6951ebdc1f9d367226d146050bc542941f7a (diff)
downloadbcm5719-llvm-74d7f0dd652bdb3fd6fdbd3fd582829c8b4d5deb.tar.gz
bcm5719-llvm-74d7f0dd652bdb3fd6fdbd3fd582829c8b4d5deb.zip
Make it possible for using decls to point to operators. Fixes PR4441.
llvm-svn: 74362
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/SemaCXX/using-decl-pr4441.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/using-decl-pr4441.cpp b/clang/test/SemaCXX/using-decl-pr4441.cpp
new file mode 100644
index 00000000000..6aa2b261e4d
--- /dev/null
+++ b/clang/test/SemaCXX/using-decl-pr4441.cpp
@@ -0,0 +1,8 @@
+// RUN: clang-cc -fsyntax-only -verify %s
+
+namespace A {
+ struct B { };
+ void operator+(B,B);
+}
+
+using A::operator+;
OpenPOWER on IntegriCloud