summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/symbol-partition.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Driver/symbol-partition.c')
-rw-r--r--clang/test/Driver/symbol-partition.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Driver/symbol-partition.c b/clang/test/Driver/symbol-partition.c
new file mode 100644
index 00000000000..9556faf15d5
--- /dev/null
+++ b/clang/test/Driver/symbol-partition.c
@@ -0,0 +1,5 @@
+// RUN: %clang -### -target x86_64-unknown-linux -c -fsymbol-partition=foo %s 2>&1 | FileCheck %s
+// RUN: %clang -### -target x86_64-pc-win32 -c -fsymbol-partition=foo %s 2>&1 | FileCheck --check-prefix=ERROR %s
+
+// CHECK: "-fsymbol-partition=foo"
+// ERROR: clang: error: unsupported option '-fsymbol-partition=foo' for target 'x86_64-pc-windows-msvc'
OpenPOWER on IntegriCloud