diff options
author | dim <dim@FreeBSD.org> | 2011-06-12 15:46:16 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-06-12 15:46:16 +0000 |
commit | c49018d9cce52d8c9f34b44865ec3ba8e89a1488 (patch) | |
tree | c5e9e10bc189de0058aa763c47b9920a8351b7df /test/Frontend | |
parent | 110eaaceddcec790f7e6a5e3bf1261c9aa1e73ab (diff) | |
download | FreeBSD-src-c49018d9cce52d8c9f34b44865ec3ba8e89a1488.zip FreeBSD-src-c49018d9cce52d8c9f34b44865ec3ba8e89a1488.tar.gz |
Vendor import of clang trunk r132879:
http://llvm.org/svn/llvm-project/cfe/trunk@132879
Diffstat (limited to 'test/Frontend')
-rw-r--r-- | test/Frontend/diagnostic-name.c | 4 | ||||
-rw-r--r-- | test/Frontend/ir-support-codegen.ll | 1 | ||||
-rw-r--r-- | test/Frontend/undef.c | 4 |
3 files changed, 7 insertions, 2 deletions
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 |