forked from OSchip/llvm-project
Add driver test for multiple preprocessor inputs
Fix an unintentional stdin read in the darwin-asan-nofortify.c test and replace it with an explicit test for multiple -E inputs passed to the driver. Noticed while working on the in-process driver patch. llvm-svn: 202007
This commit is contained in:
parent
7d2fea2fd6
commit
8587f0ca99
|
@ -1,6 +1,6 @@
|
|||
// Make sure AddressSanitizer disables _FORTIFY_SOURCE on Darwin.
|
||||
|
||||
// RUN: %clang -faddress-sanitizer %s -E -dM -target x86_64-darwin - | FileCheck %s
|
||||
// RUN: %clang -fsanitize=address %s -E -dM -target x86_64-darwin - | FileCheck %s
|
||||
// RUN: %clang -faddress-sanitizer %s -E -dM -target x86_64-darwin | FileCheck %s
|
||||
// RUN: %clang -fsanitize=address %s -E -dM -target x86_64-darwin | FileCheck %s
|
||||
|
||||
// CHECK: #define _FORTIFY_SOURCE 0
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
// RUN: %clang -E %s %s | FileCheck %s
|
||||
// Test that the driver can preprocess multiple files.
|
||||
|
||||
X
|
||||
// CHECK: X
|
||||
// CHECK: X
|
Loading…
Reference in New Issue