16cbb3ca4SMax MorozREQUIRES: darwin 26cbb3ca4SMax Moroz 36cbb3ca4SMax MorozNo dead_strip. Unused code is not removed. 46cbb3ca4SMax MorozRUN: %cpp_compiler %S/GcSectionsTest.cpp -o %t 5*7e0219d9SJulian LettnerRUN: nm %t | grep UnusedFunctionShouldBeRemovedByLinker 66cbb3ca4SMax MorozRUN: %run %t -runs=0 2>&1 | FileCheck %s 76cbb3ca4SMax Moroz 8*7e0219d9SJulian LettnerWith dead_strip. Unused code is (currently) not removed. (It would be better if it was removed!) 96cbb3ca4SMax MorozRUN: %cpp_compiler %S/GcSectionsTest.cpp -o %t -ffunction-sections -Wl,-dead_strip 10*7e0219d9SJulian LettnerRUN: nm %t | grep UnusedFunctionShouldBeRemovedByLinker 116cbb3ca4SMax MorozRUN: %run %t -runs=0 2>&1 | FileCheck %s 126cbb3ca4SMax Moroz 136cbb3ca4SMax MorozCHECK-NOT: ERROR: The size of coverage PC tables does not match 14