Stop leaving a.out files around.



git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131396 91177308-0d34-0410-b5e6-96231b3b80d8
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;
 }