summaryrefslogtreecommitdiffstats
path: root/test/Frontend
diff options
context:
space:
mode:
Diffstat (limited to 'test/Frontend')
-rw-r--r--test/Frontend/diagnostic-name.c4
-rw-r--r--test/Frontend/ir-support-codegen.ll1
-rw-r--r--test/Frontend/undef.c4
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
OpenPOWER on IntegriCloud