diff options
Diffstat (limited to 'test/Modules/linkage-merge.cpp')
-rw-r--r-- | test/Modules/linkage-merge.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/Modules/linkage-merge.cpp b/test/Modules/linkage-merge.cpp index 664716d..3ac8053 100644 --- a/test/Modules/linkage-merge.cpp +++ b/test/Modules/linkage-merge.cpp @@ -7,5 +7,9 @@ static int f(int); int f(int); static void g(int); -// expected-error@-1 {{functions that differ only in their return type cannot be overloaded}} +// FIXME: Whether we notice the problem here depends on the order in which we +// happen to find lookup results for 'g'; LookupResult::resolveKind needs to +// be taught to prefer a visible result over a non-visible one. +// +// expected-error@9 {{functions that differ only in their return type cannot be overloaded}} // expected-note@Inputs/linkage-merge-foo.h:2 {{previous declaration is here}} |