Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(763)

Unified Diff: test/Driver/malign-double.c

Issue 1323073010: Use LLVM args to handle -malign-double option (Closed) Base URL: https://chromium.googlesource.com/a/native_client/pnacl-clang.git@master
Patch Set: Review feedback addressed Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/Frontend/CompilerInvocation.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/Driver/malign-double.c
diff --git a/test/Driver/malign-double.c b/test/Driver/malign-double.c
index 81c087909223042c62a80c8793730ebb56791243..27fecfa8d793c4aa2004df82ef70016a70852fd0 100644
--- a/test/Driver/malign-double.c
+++ b/test/Driver/malign-double.c
@@ -1,13 +1,22 @@
-// RUN: %clang -### -c -malign-double %s -target i686-unknown-linux 2>&1 \
+// RUN: %clang -v -c -malign-double %s -target i686-unknown-linux 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-I686 %s
// CHECK-I686: -cc1
-// CHECK-I686: +align-double
-// CHECK-I686: "-mllvm" "-malign-double"
+// CHECK-I686: -mllvm -malign-double
+// CHECK-I686-NOT: backend data layout {{'[^']+'}} does not match expected target description {{'[^']+'}}
-// RUN: %clang -### -c -malign-double %s -target x86-64-unknown-linux 2>&1 \
-// RUN: | FileCheck -check-prefix=CHECK-X86_64 %s
+// RUN: %clang -v -c -malign-double %s -target x86_64-unknown-linux 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-X86_64 %s
// CHECK-X86_64: -cc1
-// CHECK-X86_64-NOT: +align-double
-// CHECK-X86_64-NOT: "-mllvm" "-malign-double"
+// CHECK-X86_64: -mllvm -malign-double
+
+// RUN: not %clang -v -c -mno-align-double %s -target i686-unknown-linux 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-NO-I686 %s
+
+// CHECK-NO-I686: unknown argument: '-mno-align-double'
+
+// RUN: not %clang -v -c -mno-align-double %s -target x86_64-unknown-linux 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-NO-X86_64 %s
+
+// CHECK-NO-X86_64: unknown argument: '-mno-align-double'
« no previous file with comments | « lib/Frontend/CompilerInvocation.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698