[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / Modules / template-specialization-visibility.cpp
blob6f4f6efc9edc6b603c44b2bedea179c20b5ed0e0
1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -verify -fmodules-cache-path=%t -I %S/Inputs/template-specialization-visibility -std=c++11 %s
3 //
4 // expected-no-diagnostics
6 #include "c.h"
8 S<int> implicit_inst_class_template;
9 int k1 = implicit_inst_class_template.n;
11 S<char> explicit_inst_class_template;
12 int k2 = explicit_inst_class_template.n;
14 #include "a.h"
16 T<int>::S implicit_inst_member_class_template;
17 int k3 = implicit_inst_member_class_template.n;
19 T<char>::S explicit_inst_member_class_template;
20 int k4 = explicit_inst_member_class_template.n;
22 T<int>::E implicit_inst_member_enum_template;
23 int k5 = decltype(implicit_inst_member_enum_template)::e;
25 T<char>::E explicit_inst_member_enum_template;
26 int k6 = decltype(explicit_inst_member_enum_template)::e;