forked from OSchip/llvm-project
[libc++abi] Add -Wno-unreachable-code when building test for throwing incomplete types
Slightly older Clangs seem to think they are more clever than they really are, and they think the code can never be executed. The code can actually be executed in case the exception runtime is mis-implemented, which is exactly what this test is testing. This commit just disables the spurious warning.
This commit is contained in:
parent
cac8cd0a16
commit
78769923fe
|
@ -20,8 +20,8 @@
|
|||
// for shell tests because of Apple security features).
|
||||
|
||||
// FILE_DEPENDENCIES: %t.exe
|
||||
// RUN: %{cxx} %{flags} %{compile_flags} -c %s -o %t.one.o
|
||||
// RUN: %{cxx} %{flags} %{compile_flags} -c %s -o %t.two.o -DTU_ONE
|
||||
// RUN: %{cxx} %{flags} %{compile_flags} -Wno-unreachable-code -c %s -o %t.one.o
|
||||
// RUN: %{cxx} %{flags} %{compile_flags} -Wno-unreachable-code -c %s -o %t.two.o -DTU_ONE
|
||||
// RUN: %{cxx} %{flags} %t.one.o %t.two.o %{link_libcxxabi} %{link_flags} -o %t.exe
|
||||
// RUN: %{exec} %t.exe
|
||||
|
||||
|
|
Loading…
Reference in New Issue