brintos

brintos / llvm-project-archived public Read only

0
0
Text · 444 B · 59e4f2f Raw
14 lines · cpp
1// RUN: cat %s | clang-repl -Xcc -Xclang -Xcc -load -Xcc -Xclang \2// RUN:            -Xcc %llvmshlibdir/PrintFunctionNames%pluginext -Xcc -Xclang\3// RUN:            -Xcc -add-plugin -Xcc -Xclang -Xcc print-fns 2>&1 | FileCheck %s4// REQUIRES: plugins, examples5 6int i = 10;7extern "C" int printf(const char*,...);8auto r1 = printf("i = %d\n", i);9%quit10 11// CHECK: top-level-decl: "i"12// CHECK-NEXT: top-level-decl: "r1"13// CHECK-NEXT: i = 1014