Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | // RUN: %clang_cc1 -fmodules -verify -fmodules-cache-path=%t -I %S/Inputs/template-specialization-visibility -std=c++11 %s |
| 3 | // |
Stephen Hines | 6bcf27b | 2014-05-29 04:14:42 -0700 | [diff] [blame] | 4 | // expected-no-diagnostics |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 5 | |
| 6 | #include "c.h" |
| 7 | |
| 8 | S<int> implicit_inst_class_template; |
| 9 | int k1 = implicit_inst_class_template.n; |
| 10 | |
Stephen Hines | 6bcf27b | 2014-05-29 04:14:42 -0700 | [diff] [blame] | 11 | S<char> explicit_inst_class_template; |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 12 | int k2 = explicit_inst_class_template.n; |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 13 | |
| 14 | #include "a.h" |
| 15 | |
| 16 | T<int>::S implicit_inst_member_class_template; |
| 17 | int k3 = implicit_inst_member_class_template.n; |
| 18 | |
Stephen Hines | 6bcf27b | 2014-05-29 04:14:42 -0700 | [diff] [blame] | 19 | T<char>::S explicit_inst_member_class_template; |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 20 | int k4 = explicit_inst_member_class_template.n; |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 21 | |
| 22 | T<int>::E implicit_inst_member_enum_template; |
| 23 | int k5 = decltype(implicit_inst_member_enum_template)::e; |
| 24 | |
Stephen Hines | 6bcf27b | 2014-05-29 04:14:42 -0700 | [diff] [blame] | 25 | T<char>::E explicit_inst_member_enum_template; |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 26 | int k6 = decltype(explicit_inst_member_enum_template)::e; |