summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/clang-exception-flags.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Driver/clang-exception-flags.cpp')
-rw-r--r--clang/test/Driver/clang-exception-flags.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/test/Driver/clang-exception-flags.cpp b/clang/test/Driver/clang-exception-flags.cpp
index 90a9ebf5e44..8c27d9b16d2 100644
--- a/clang/test/Driver/clang-exception-flags.cpp
+++ b/clang/test/Driver/clang-exception-flags.cpp
@@ -1,4 +1,6 @@
-// RUN: %clang -### %s 2>&1 | FileCheck %s -check-prefix=DEFAULT
+// We force the target to unknown because clang's default behavior for
+// exception handling is target dependent.
+// RUN: %clang -### -target unknown %s 2>&1 | FileCheck %s -check-prefix=DEFAULT
// DEFAULT: "-cc1" {{.*}} "-fcxx-exceptions" "-fexceptions"
//
// RUN: %clang -### -fexceptions %s 2>&1 | FileCheck %s -check-prefix=ON1
OpenPOWER on IntegriCloud