From c49018d9cce52d8c9f34b44865ec3ba8e89a1488 Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 12 Jun 2011 15:46:16 +0000 Subject: Vendor import of clang trunk r132879: http://llvm.org/svn/llvm-project/cfe/trunk@132879 --- test/Frontend/diagnostic-name.c | 4 ++-- test/Frontend/ir-support-codegen.ll | 1 + test/Frontend/undef.c | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 test/Frontend/undef.c (limited to 'test/Frontend') diff --git a/test/Frontend/diagnostic-name.c b/test/Frontend/diagnostic-name.c index 7f43f65..ae6cb0d 100644 --- a/test/Frontend/diagnostic-name.c +++ b/test/Frontend/diagnostic-name.c @@ -1,5 +1,5 @@ -// RUN: %clang -Wunused-parameter -fdiagnostics-show-name %s 2>&1 | grep "\[warn_unused_parameter\]" | count 1 -// RUN: %clang -Wunused-parameter -fno-diagnostics-show-name %s 2>&1 | grep "\[warn_unused_parameter\]" | count 0 +// RUN: %clang -fsyntax-only -Wunused-parameter -fdiagnostics-show-name %s 2>&1 | grep "\[warn_unused_parameter\]" | count 1 +// RUN: %clang -fsyntax-only -Wunused-parameter -fno-diagnostics-show-name %s 2>&1 | grep "\[warn_unused_parameter\]" | count 0 int main(int argc, char *argv[]) { return argc; } diff --git a/test/Frontend/ir-support-codegen.ll b/test/Frontend/ir-support-codegen.ll index 046b3af..e5e5b62 100644 --- a/test/Frontend/ir-support-codegen.ll +++ b/test/Frontend/ir-support-codegen.ll @@ -1,3 +1,4 @@ +; REQUIRES: x86-64-registered-target ; RUN: %clang_cc1 -S -o - %s | FileCheck %s target triple = "x86_64-apple-darwin10" diff --git a/test/Frontend/undef.c b/test/Frontend/undef.c new file mode 100644 index 0000000..f539cdc --- /dev/null +++ b/test/Frontend/undef.c @@ -0,0 +1,4 @@ +// RUN: %clang -undef -x assembler-with-cpp -E %s +#ifndef __ASSEMBLER__ +#error "Must be preprocessed as assembler." +#endif -- cgit v1.1