mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04:00

Unless the test is explicitly testing a driver feature if clang interface stubs I have changed the tests to use %clang_cc1. This should make some changes I plan to make to the driver job pipeline cause fewer test changes and breakages.
17 lines
594 B
C++
17 lines
594 B
C++
// REQUIRES: x86-registered-target
|
|
// RUN: %clang_cc1 -triple x86_64-linux-gnu -o - -emit-interface-stubs \
|
|
// RUN: -interface-stub-version=experimental-ifs-v1 %s | \
|
|
// RUN: FileCheck %s
|
|
|
|
// RUN: %clang -target x86_64-unknown-linux-gnu -o - -c %s | llvm-nm - 2>&1 | \
|
|
// RUN: FileCheck -check-prefix=CHECK-SYMBOLS %s
|
|
|
|
// CHECK: Symbols:
|
|
// CHECK-DAG: "_Z8weakFuncv" : { Type: Func, Weak: true }
|
|
// CHECK-DAG: "_Z10strongFuncv" : { Type: Func }
|
|
|
|
// CHECK-SYMBOLS-DAG: _Z10strongFuncv
|
|
// CHECK-SYMBOLS-DAG: _Z8weakFuncv
|
|
__attribute__((weak)) void weakFunc() {}
|
|
int strongFunc() { return 42; }
|