File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
libcxx/test/libcxx/vendor/apple Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2727// don't define _LIBCPP_DISABLE_AVAILABILITY. Otherwise, something may have changed in libc++
2828// and this test might not work anymore.
2929// RUN: %{cxx} %s %{flags} %{compile_flags} %{link_flags} -fvisibility=hidden -fvisibility-inlines-hidden -shared -o %t.1.dylib
30- // RUN: nm -omg %t.1.dylib | c++filt | grep value | grep weak
30+ // RUN: nm -m %t.1.dylib | c++filt | grep value > %t.1.symbols
31+ // RUN: grep weak %t.1.symbols
3132
3233// Now, make sure that 'weak' goes away when we define _LIBCPP_DISABLE_AVAILABILITY.
3334// In fact, all references to the function might go away, so we just check that we don't emit
3435// any weak reference.
3536// RUN: %{cxx} %s %{flags} %{compile_flags} %{link_flags} -fvisibility=hidden -fvisibility-inlines-hidden -D_LIBCPP_DISABLE_AVAILABILITY -shared -o %t.2.dylib
36- // RUN: nm -omg %t.2.dylib | c++filt | grep -v weak
37+ // RUN: nm -m %t.2.dylib | c++filt | grep value > %t.2.symbols
38+ // RUN: not grep weak %t.2.symbols
3739
3840#include < version>
3941
You can’t perform that action at this time.
0 commit comments