1 // RUN: cat %s | clang-repl | FileCheck %s 2 // REQUIRES: host-supports-jit 3 4 extern "C" int printf(const char *, ...); 5 int i = 42; 6 auto r1 = printf("i = %d\n", i); 7 // CHECK: i = 42 8 9 struct S { float f = 1.0; S *m = nullptr;} s; 10 11 auto r2 = printf("S[f=%f, m=0x%llx]\n", s.f, reinterpret_cast<unsigned long long>(s.m)); 12 // CHECK-NEXT: S[f=1.000000, m=0x0] 13 14 quit 15