summaryrefslogtreecommitdiffstats
path: root/clang/test/AST/foreachtemplatized.mm
blob: ab2770a7cefb62f0c1f3af93eb089c3206a62d33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
}
OpenPOWER on IntegriCloud