10 static FOO_VAR_TYPE MyDummyVar __attribute__((aligned(4), used, section("TAD_VIRTUAL, TAD_DUMMY_DATA"), nocommon));
20 $ clang++ -O2 -g main.cpp -c -o main.o
21 $ clang++ main.o -o main.out
23 RUN: dsymutil --linker parallel -oso-prepend-path %p/../../Inputs %p/../../Inputs/private/tmp/keep_func/main.out -o %t.omit.dSYM
24 RUN: dsymutil --linker parallel -oso-prepend-path %p/../../Inputs %p/../../Inputs/private/tmp/keep_func/main.out -o %t.keep.dSYM -keep-function-for-static
25 RUN: llvm-dwarfdump %t.omit.dSYM | FileCheck %s --check-prefix OMIT
26 RUN: llvm-dwarfdump %t.keep.dSYM | FileCheck %s --check-prefix KEEP
28 KEEP: DW_AT_name ("x1")
29 KEEP: DW_AT_name ("x2")
30 KEEP: DW_AT_name ("FOO_VAR_TYPE")
31 KEEP: DW_AT_name ("MyDummyVar")
33 OMIT-NOT: DW_AT_name ("MyDummyVar")
34 OMIT-NOT: DW_AT_name ("FOO_VAR_TYPE")
35 OMIT-NOT: DW_AT_name ("x1")
36 OMIT-NOT: DW_AT_name ("x2")