1 // REQUIRES: host-supports-jit
2 // UNSUPPORTED: system-aix
3 // RUN: cat %s | clang-repl -Xcc -Xclang -Xcc -verify | FileCheck %s
4 // RUN: %clang_cc1 -verify -fincremental-extensions -emit-llvm -o - %s \
5 // RUN: | FileCheck --check-prefix=CODEGEN-CHECK %s
7 // expected-no-diagnostics
9 //CODEGEN-CHECK-COUNT-2: define internal void @__stmts__
10 //CODEGEN-CHECK-NOT: define internal void @__stmts__
13 extern "C" int printf(const char*,...);
15 template <typename T
> T
call() { printf("called\n"); return T(); }
21 printf("i = %d\n", i
);
24 namespace Ns
{ void f(){ i
++; } }
31 printf("i = %d\n", i
);
34 for (; i
> 4; --i
) printf("i = %d\n", i
);
39 for (; i
> 4; --i
) { printf("i = %d\n", i
); };
42 int j
= i
; printf("j = %d\n", j
);