Fix incomplete type test on OS X; workaround weird DYLD_LIBRARY_PATH behavior

llvm-svn: 307230
This commit is contained in:
Eric Fiselier 2017-07-06 00:29:09 +00:00
parent 52dfcd18d1
commit ce02c1bc15
1 changed files with 5 additions and 1 deletions

View File

@ -16,9 +16,13 @@
// UNSUPPORTED: libcxxabi-no-exceptions
// NOTE: Pass -lc++abi explicitly and before -lc++ so that -lc++ doesn't drag
// in the system libc++abi installation on OS X. (DYLD_LIBRARY_PATH is ignored
// for shell tests because of Apple security features).
// 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 %t.one.o %t.two.o %link_flags -o %t.exe
// RUN: %cxx %flags %t.one.o %t.two.o -lc++abi %link_flags -o %t.exe
// RUN: %t.exe
#include <stdio.h>