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