diff options
Diffstat (limited to 'test/SemaCXX/undefined-internal.cpp')
| -rw-r--r-- | test/SemaCXX/undefined-internal.cpp | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaCXX/undefined-internal.cpp b/test/SemaCXX/undefined-internal.cpp index 32151b71ea17..60fa202384de 100644 --- a/test/SemaCXX/undefined-internal.cpp +++ b/test/SemaCXX/undefined-internal.cpp @@ -187,6 +187,10 @@ namespace OverloadUse {      void f();      void f(int); // expected-warning {{function 'OverloadUse::(anonymous namespace)::f' has internal linkage but is not defined}}      void f(int, int); // expected-warning {{function 'OverloadUse::(anonymous namespace)::f' has internal linkage but is not defined}} +#if __cplusplus < 201103L +    // expected-note@-3 {{here}} +    // expected-note@-3 {{here}} +#endif    }    template<void x()> void t() { x(); }    template<void x(int)> void t(int*) { x(10); } @@ -194,6 +198,10 @@ namespace OverloadUse {    void g(int n) {      t<f>(&n); // expected-note {{used here}}      t<f>(&n, &n); // expected-note {{used here}} +#if __cplusplus < 201103L +    // expected-warning@-3 {{non-type template argument referring to function 'f' with internal linkage}} +    // expected-warning@-3 {{non-type template argument referring to function 'f' with internal linkage}} +#endif    }  }  | 
