diff options
Diffstat (limited to 'clang/test/SemaCXX/PR10177.cpp')
-rw-r--r-- | clang/test/SemaCXX/PR10177.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/PR10177.cpp b/clang/test/SemaCXX/PR10177.cpp index 9286e293516..59630be5088 100644 --- a/clang/test/SemaCXX/PR10177.cpp +++ b/clang/test/SemaCXX/PR10177.cpp @@ -24,6 +24,13 @@ void f() { (void)class_ref<int, int&, U<2>::a>(); // expected-note {{here}} }; +template<typename T> +void not_instantiated() { + // These cases (arguably) do not require instantiation of U<i>::a. + (void)alias_ref<int, int&, U<3>::a>(); + (void)func_ref<int, int&, U<4>::a>(); + (void)class_ref<int, int&, U<5>::a>(); +}; template<int N> void fi() { @@ -33,7 +40,7 @@ void fi() { }; int main() { - f<int>(); // NOTE: Non-dependent name uses are type-checked at template definition time. + f<int>(); // expected-note 3{{here}} fi<10>(); // expected-note 3{{here}} } |