aboutsummaryrefslogtreecommitdiff
path: root/test/AST/foreachtemplatized.mm
diff options
context:
space:
mode:
Diffstat (limited to 'test/AST/foreachtemplatized.mm')
-rw-r--r--test/AST/foreachtemplatized.mm15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/AST/foreachtemplatized.mm b/test/AST/foreachtemplatized.mm
new file mode 100644
index 000000000000..ab2770a7cefb
--- /dev/null
+++ b/test/AST/foreachtemplatized.mm
@@ -0,0 +1,15 @@
+// RUN: %clang_cc1 -fsyntax-only -fobjc-arc -Wno-objc-root-class -std=c++11 -ast-dump %s | FileCheck %s
+
+// CHECK-NOT: ImplicitValueInitExpr
+
+@interface I
+@end
+
+template <typename T>
+void decode(I *p) {
+ for (I *k in p) {}
+}
+
+void decode(I *p) {
+ decode<int>(p);
+}