1 // RUN: dsymutil -f -oso-prepend-path=%p/../Inputs/modules-pruning \
3 // RUN: -y %p/dummy-debug-map.map -o - \
4 // RUN: | llvm-dwarfdump --name isRef -p - | FileCheck %s
7 cat >modules.modulemap <<EOF
15 clang++ -D TEMPLATE_H -E -o template.h modules-pruning.cpp
16 clang++ -c -fcxx-modules -fmodules -fmodule-map-file=modules.modulemap \
17 -g -gmodules -fmodules-cache-path=. \
18 -Xclang -fdisable-module-hash modules-pruning.cpp -o 1.o
21 // CHECK: DW_TAG_compile_unit
22 // CHECK: DW_TAG_module
23 // CHECK: DW_TAG_module
24 // CHECK: DW_TAG_class
25 // CHECK: DW_TAG_member
26 // CHECK: DW_AT_name ("isRef")
27 // CHECK: DW_AT_declaration (true)
28 // CHECK: DW_AT_const_value (1)
35 static const bool value = false;
38 static const bool value = true;
41 template <class T> struct is_reference : false_type {};
42 template <class T> struct is_reference<T&> : true_type {};
47 static const bool isRef = is_reference<T>::value;
56 M::Template<bool&> TB1;