| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| @import DependsOnModule; | ||
| // REQUIRES: x86-registered-target | ||
| // RUN: rm -rf %t-MachO %t-ELF %t-ELF_SPLIT %t-COFF | ||
| // RUN: %clang_cc1 -triple=x86_64-apple-darwin -fmodules -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t-MachO -F %S/Inputs %s | ||
| // RUN: %clang_cc1 -triple=x86_64-linux-elf -fmodules -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t-ELF -F %S/Inputs %s | ||
| // RUN: %clang_cc1 -triple=x86_64-windows-coff -fmodules -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t-COFF -F %S/Inputs %s | ||
|
|
||
| // RUN: llvm-objdump -section-headers %t-MachO/DependsOnModule.pcm %t-ELF/DependsOnModule.pcm %t-COFF/DependsOnModule.pcm | FileCheck %s | ||
| // CHECK: file format Mach-O 64-bit x86-64 | ||
| // CHECK: __clangast {{[0-9a-f]+}} {{[0-9a-f]+}} DATA | ||
| // CHECK: file format ELF64-x86-64 | ||
| // CHECK: __clangast {{[0-9a-f]+}} {{[0-9a-f]+}} DATA | ||
| // CHECK: file format COFF-x86-64 | ||
| // CHECK: clangast {{[0-9a-f]+}} {{[0-9a-f]+}} | ||
|
|
||
|
|
||
| // RUN: %clang_cc1 -split-dwarf-file t-split.dwo -triple=x86_64-linux-elf -fmodules -fimplicit-module-maps -fdisable-module-hash -fmodules-cache-path=%t-ELF_SPLIT -F %S/Inputs %s -o %t-split.o |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| // REQUIRES: x86-registered-target | ||
| // PR13189 | ||
| // rdar://problem/11741429 | ||
| // Test this without pch. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| // REQUIRES: x86-registered-target | ||
| // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-pch -o %t1 %S/Inputs/chain-trivial1.h | ||
| // RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-pch -o %t2 -include-pch %t1 %S/Inputs/chain-trivial2.h |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-pch -o %t1 %S/pchpch1.h | ||
| // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-pch -o %t2 %S/pchpch2.h -include-pch %t1 | ||
| // RUN: %clang_cc1 -triple i386-unknown-unknown -fsyntax-only %s -include-pch %t2 | ||
| // REQUIRES: x86-registered-target | ||
|
|
||
| // The purpose of this test is to make sure that a PCH created while including | ||
| // an existing PCH can be loaded. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| // RUN: %clang_cc1 -triple=x86_64-apple-darwin9 -emit-pch -o %t.pch %S/target-options.h | ||
| // RUN: not %clang_cc1 -triple=x86_64-unknown-freebsd7.0 -include-pch %t.pch %s -emit-llvm -o - > %t.err 2>&1 | ||
| // RUN: FileCheck %s < %t.err | ||
| // REQUIRES: x86-registered-target | ||
|
|
||
| // CHECK: for the target |