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:
Alp Toker 2014-02-24 08:17:02 +00:00
parent 7d2fea2fd6
commit 8587f0ca99
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -0,0 +1,6 @@
// RUN: %clang -E %s %s | FileCheck %s
// Test that the driver can preprocess multiple files.
X
// CHECK: X
// CHECK: X