[RISCV] Simplify usage of SplatPat_simm5_plus1. NFC (#125340)
[llvm-project.git] / clang / test / Interpreter / execute.c
blob44a3a32c9301120b499cc4536c2355bcee13ad52
1 // REQUIRES: host-supports-jit
2 // UNSUPPORTED: system-aix
4 // RUN: cat %s | clang-repl -Xcc -xc -Xcc -Xclang -Xcc -verify | FileCheck %s
5 // RUN: cat %s | clang-repl -Xcc -xc -Xcc -O2 -Xcc -Xclang -Xcc -verify| FileCheck %s
6 int printf(const char *, ...);
7 int i = 42; err // expected-error{{use of undeclared identifier}}
8 int i = 42;
9 struct S { float f; struct S *m;} s = {1.0, 0};
10 // FIXME: Making foo inline fails to emit the function.
11 int foo() { return 42; }
12 void run() { \
13 printf("i = %d\n", i); \
14 printf("S[f=%f, m=0x%llx]\n", s.f, (unsigned long long)s.m); \
15 int r3 = foo(); \
17 run();
18 // CHECK: i = 42
19 // CHECK-NEXT: S[f=1.000000, m=0x0]
21 %quit