Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / InterfaceStubs / driver-test3.c
blob407fb5c20cb41cf1eedb75f2c2970bffecaf1475
1 // REQUIRES: x86-registered-target
2 // REQUIRES: shell
4 // RUN: mkdir -p %t; cd %t
5 // RUN: %clang -target x86_64-unknown-linux-gnu -c -emit-interface-stubs %s -o %t/driver-test3.o
6 // RUN: llvm-nm %t/driver-test3.o | FileCheck --check-prefix=CHECK-OBJ %s
7 // RUN: cat %t/driver-test3.ifs | FileCheck --check-prefix=CHECK-IFS %s
9 // CHECK-OBJ: bar
11 // CHECK-IFS: --- !ifs-v1
12 // CHECK-IFS-NEXT: IfsVersion:
13 // CHECK-IFS-NEXT: Target:
14 // CHECK-IFS-NEXT: Symbols:
15 // CHECK-IFS-NEXT: - { Name: "bar", Type: Func }
16 // CHECK-IFS-NEXT: ...
18 int bar(int a) { return a; }