summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/warn-static-outside-class-definition.cpp
blob: 5235d35cb117a4841f62f146b0f3cbaa52d7fd92 (plain)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %clang_cc1 -fms-compatibility -fsyntax-only -verify %s

struct C {
  template <typename T> static int foo(T);
};

template <typename T> static int C::foo(T) { 
  //expected-warning@-1 {{'static' can only be specified inside the class definition}}
  return 0;
}