diff options
Diffstat (limited to 'clang/test/SemaCXX/linkage2.cpp')
-rw-r--r-- | clang/test/SemaCXX/linkage2.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/linkage2.cpp b/clang/test/SemaCXX/linkage2.cpp index d1aee4e55d9..8a91ca49609 100644 --- a/clang/test/SemaCXX/linkage2.cpp +++ b/clang/test/SemaCXX/linkage2.cpp @@ -140,3 +140,10 @@ namespace test13 { extern void a(); static void a(void) {} } + +namespace test14 { + namespace { + void a(void); // expected-note {{previous declaration is here}} + static void a(void) {} // expected-error {{static declaration of 'a' follows non-static declaration}} + } +} |