1 // RUN: %clang_cc1 -fms-compatibility -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -fms-compatibility -fsyntax-only -fms-compatibility-version=12.0 -verify %s
5 template <typename T
> static int foo(T
);
8 template <typename T
> static int C::foo(T
) {
9 //expected-warning@-1 {{'static' can only be specified inside the class definition}}
13 template <class T
> struct S
{
17 template <class T
> static void S
<T
>::f() {}
19 //expected-error@-2 {{'static' can only be specified inside the class definition}}
21 //expected-warning@-4 {{'static' can only be specified inside the class definition}}