summaryrefslogtreecommitdiff
path: root/clang/test/SemaCXX/PR8884.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/PR8884.cpp')
-rw-r--r--clang/test/SemaCXX/PR8884.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/PR8884.cpp b/clang/test/SemaCXX/PR8884.cpp
new file mode 100644
index 0000000..4026465
--- /dev/null
+++ b/clang/test/SemaCXX/PR8884.cpp
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -fsyntax-only %s
+extern "C" {
+ class bar {
+ friend struct foo;
+ static struct foo& baz ();
+ };
+ struct foo {
+ void zed () {
+ bar::baz();
+ }
+ };
+}