Mercurial > hg > CbC > CbC_llvm
annotate clang/test/InterfaceStubs/driver-test.c @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 70dce7da266c |
children |
rev | line source |
---|---|
150 | 1 // REQUIRES: x86-registered-target |
2 // REQUIRES: shell | |
3 | |
4 // NOTE: -fno-integrated-cc1 has been added to work around an ASAN failure | |
5 // caused by in-process cc1 invocation. Clang InterfaceStubs is not the | |
6 // culprit, but Clang Interface Stubs' Driver pipeline setup uncovers an | |
7 // existing ASAN issue when invoking multiple normal cc1 jobs along with | |
8 // multiple Clang Interface Stubs cc1 jobs together. | |
9 // There is currently a discussion of this going on at: | |
10 // https://reviews.llvm.org/D69825 | |
11 // RUN: mkdir -p %t; cd %t | |
12 // RUN: %clang -target x86_64-unknown-linux-gnu -x c -S \ | |
13 // RUN: -fno-integrated-cc1 \ | |
14 // RUN: -emit-interface-stubs %s %S/object.c %S/weak.cpp && \ | |
232
70dce7da266c
llvm original Jul 20 16:41:34 2021
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
150
diff
changeset
|
15 // RUN: llvm-nm -D %t/a.out.ifso 2>&1 | FileCheck --check-prefix=CHECK-IFS %s |
150 | 16 |
17 // CHECK-IFS-DAG: data | |
18 // CHECK-IFS-DAG: foo | |
19 // CHECK-IFS-DAG: strongFunc | |
20 // CHECK-IFS-DAG: weakFunc | |
21 | |
22 int foo(int bar) { return 42 + 1844; } |