[Driver] Fix fsemantic-interposition.c for Windows and Darwin
authorFangrui Song <maskray@google.com>
Mon, 3 Feb 2020 04:55:24 +0000 (20:55 -0800)
committerFangrui Song <maskray@google.com>
Mon, 3 Feb 2020 04:55:24 +0000 (20:55 -0800)
clang/test/Driver/fsemantic-interposition.c

index 484be67..252f5fc 100644 (file)
@@ -3,7 +3,7 @@
 // CHECK: "-fsemantic-interposition"
 
 // RUN: %clang -target %itanium_abi_triple %s -Werror -fPIC -fsemantic-interposition -fno-semantic-interposition -c -### 2>&1 | FileCheck --check-prefix=NO %s
-// RUN: %clang -target %itanium_abi_triple %s -Werror -fsemantic-interposition -c -### 2>&1 | FileCheck --check-prefix=NO %s
+// RUN: %clang -target %itanium_abi_triple %s -Werror -fno-PIC -fsemantic-interposition -c -### 2>&1 | FileCheck --check-prefix=NO %s
 // RUN: %clang -target %itanium_abi_triple %s -Werror -fPIC -c -### 2>&1 | FileCheck --check-prefix=NO %s
 // RUN: %clang -target %itanium_abi_triple %s -Werror -fPIE -fsemantic-interposition -c -### 2>&1 | FileCheck --check-prefix=NO %s
 // NO-NOT: "-fsemantic-interposition"