llvm-capstone/clang/test/Interpreter/execute-weak.cpp
Jonas Hahnfeld ac6e9e69ba [clang-repl] Remove redundant tests
They only need to be tested once in execute.cpp and fail.cpp.

Differential Revision: https://reviews.llvm.org/D156425
2023-07-27 16:22:56 +02:00

14 lines
325 B
C++

// UNSUPPORTED: system-aix, system-windows
// RUN: cat %s | clang-repl | FileCheck %s
extern "C" int printf(const char *, ...);
int __attribute__((weak)) bar() { return 42; }
auto r4 = printf("bar() = %d\n", bar());
// CHECK: bar() = 42
int a = 12;
static __typeof(a) b __attribute__((__weakref__("a")));
int c = b;
%quit