annotate clang/test/Driver/ananas.c @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents c4bab56944e8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
236
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
1 // RUN: %clang --target=x86_64-unknown-ananas -static %s \
150
anatofuz
parents:
diff changeset
2 // RUN: --sysroot=%S/Inputs/ananas-tree -### 2>&1 \
anatofuz
parents:
diff changeset
3 // RUN: | FileCheck --check-prefix=CHECK-STATIC %s
anatofuz
parents:
diff changeset
4 // CHECK-STATIC: ld{{.*}}" "-Bstatic"
anatofuz
parents:
diff changeset
5 // CHECK-STATIC: crt0.o
anatofuz
parents:
diff changeset
6 // CHECK-STATIC: crti.o
anatofuz
parents:
diff changeset
7 // CHECK-STATIC: crtbegin.o
anatofuz
parents:
diff changeset
8 // CHECK-STATIC: crtend.o
anatofuz
parents:
diff changeset
9 // CHECK-STATIC: crtn.o
anatofuz
parents:
diff changeset
10
236
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
11 // RUN: %clang --target=x86_64-unknown-ananas -shared %s \
150
anatofuz
parents:
diff changeset
12 // RUN: --sysroot=%S/Inputs/ananas-tree -### 2>&1 \
anatofuz
parents:
diff changeset
13 // RUN: | FileCheck --check-prefix=CHECK-SHARED %s
anatofuz
parents:
diff changeset
14 // CHECK-SHARED: crti.o
anatofuz
parents:
diff changeset
15 // CHECK-SHARED: crtbeginS.o
anatofuz
parents:
diff changeset
16 // CHECK-SHARED: crtendS.o
anatofuz
parents:
diff changeset
17 // CHECK-SHARED: crtn.o
236
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
18
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
19 // -r suppresses -dynamic-linker, default -l and crt*.o like -nostdlib.
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
20 // RUN: %clang %s -### -o %t.o --target=x86_64-unknown-ananas -r 2>&1 \
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
21 // RUN: | FileCheck %s --check-prefix=CHECK-RELOCATABLE
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
22 // CHECK-RELOCATABLE: "-r"
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
23 // CHECK-RELOCATABLE-NOT: "-pie"
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
24 // CHECK-RELOCATABLE-NOT: "-dynamic-linker"
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
25 // CHECK-RELOCATABLE-NOT: "-l
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
26 // CHECK-RELOCATABLE-NOT: /crt{{[^.]+}}.o