File tree 1 file changed +4
-2
lines changed
libcxx/test/libcxx/vendor/apple
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 27
27
// don't define _LIBCPP_DISABLE_AVAILABILITY. Otherwise, something may have changed in libc++
28
28
// and this test might not work anymore.
29
29
// 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
31
32
32
33
// Now, make sure that 'weak' goes away when we define _LIBCPP_DISABLE_AVAILABILITY.
33
34
// In fact, all references to the function might go away, so we just check that we don't emit
34
35
// any weak reference.
35
36
// 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
37
39
38
40
#include < version>
39
41
You can’t perform that action at this time.
0 commit comments