[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / Interpreter / plugins.cpp
blob032f704624ad7455ee515c2529a2d1b9827fe58b
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 %s
4 // REQUIRES: host-supports-jit, plugins, examples
6 int i = 10;
7 extern "C" int printf(const char*,...);
8 auto r1 = printf("i = %d\n", i);
9 quit
12 // CHECK: top-level-decl: "i"
13 // CHECK-NEXT: top-level-decl: "r1"
14 // CHECK-NEXT: i = 10