summaryrefslogtreecommitdiff
path: root/clang/test/SemaTemplate/enum-forward.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaTemplate/enum-forward.cpp')
-rw-r--r--clang/test/SemaTemplate/enum-forward.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/enum-forward.cpp b/clang/test/SemaTemplate/enum-forward.cpp
new file mode 100644
index 0000000..b25c21f
--- /dev/null
+++ b/clang/test/SemaTemplate/enum-forward.cpp
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -fsyntax-only -fms-compatibility %s
+
+template<typename T>
+struct X {
+ enum E *e;
+};
+
+X<int> xi;