summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/enum-argument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/enum-argument.cpp')
-rw-r--r--test/SemaTemplate/enum-argument.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/SemaTemplate/enum-argument.cpp b/test/SemaTemplate/enum-argument.cpp
index de89487..7d23757 100644
--- a/test/SemaTemplate/enum-argument.cpp
+++ b/test/SemaTemplate/enum-argument.cpp
@@ -21,3 +21,16 @@ struct X0 {
};
X0<int> x0i;
+
+namespace rdar8020920 {
+ template<typename T>
+ struct X {
+ enum { e0 = 32 };
+
+ unsigned long long bitfield : e0;
+
+ void f(int j) {
+ bitfield + j;
+ }
+ };
+}
OpenPOWER on IntegriCloud