blob: 481547036e4c7b0a93debee784f546dd478081a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// RUN: clang-cc -fsyntax-only -verify -Wmissing-prototypes %s
void f() { } // expected-warning {{no previous prototype for function 'f'}}
namespace NS {
void f() { } // expected-warning {{no previous prototype for function 'f'}}
}
namespace {
// Should not warn about anonymous namespaces
void f() { }
}
struct A {
// Should not warn about member functions.
void f() { }
};
inline void g() { }
|