diff options
Diffstat (limited to 'clang/test/SemaCXX/linkage2.cpp')
| -rw-r--r-- | clang/test/SemaCXX/linkage2.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/test/SemaCXX/linkage2.cpp b/clang/test/SemaCXX/linkage2.cpp index a7eb15f7c6b..8c80f4bdb90 100644 --- a/clang/test/SemaCXX/linkage2.cpp +++ b/clang/test/SemaCXX/linkage2.cpp @@ -143,9 +143,10 @@ namespace test13 { } namespace test14 { + // Anonymous namespace implies internal linkage, so 'static' has no effect. namespace { - void a(void); // expected-note {{previous declaration is here}} - static void a(void) {} // expected-error {{static declaration of 'a' follows non-static declaration}} + void a(void); + static void a(void) {} } } |

