summaryrefslogtreecommitdiffstats
path: root/test/Parser/cxx-typeof.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Parser/cxx-typeof.cpp')
-rw-r--r--test/Parser/cxx-typeof.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Parser/cxx-typeof.cpp b/test/Parser/cxx-typeof.cpp
index 7e89101..4c598e9 100644
--- a/test/Parser/cxx-typeof.cpp
+++ b/test/Parser/cxx-typeof.cpp
@@ -5,3 +5,9 @@ static void test() {
int x;
typeof pi[x] y;
}
+
+// Part of rdar://problem/8347416; from the gcc test suite.
+struct S {
+ int i;
+ __typeof(S::i) foo(); // expected-error {{invalid use of nonstatic data member 'i'}}
+};
OpenPOWER on IntegriCloud