Erich Keane | 3e7fda2 | 2019-01-25 17:01:42 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fms-compatibility -fsyntax-only -verify %s |
2 | |||||
3 | struct C { | ||||
4 | template <typename T> static int foo(T); | ||||
5 | }; | ||||
6 | |||||
7 | template <typename T> static int C::foo(T) { | ||||
8 | //expected-warning@-1 {{'static' can only be specified inside the class definition}} | ||||
9 | return 0; | ||||
10 | } | ||||
11 |