Andy Gibbs | fcc699a | 2013-04-17 08:06:46 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | // RUN: %clang_cc1 -verify -fmodules -fmodules-cache-path=%t -I %S/Inputs %s |
Rafael Espindola | 7b51ae8 | 2013-04-04 04:40:17 +0000 | [diff] [blame] | 3 | |
| 4 | #include "linkage-merge-bar.h" |
| 5 | |
| 6 | static int f(int); |
| 7 | int f(int); |
Rafael Espindola | 3e01a7f | 2013-04-05 00:52:14 +0000 | [diff] [blame] | 8 | |
Andy Gibbs | fcc699a | 2013-04-17 08:06:46 +0000 | [diff] [blame] | 9 | static void g(int); |
Richard Smith | 1881930 | 2014-02-06 01:31:33 +0000 | [diff] [blame] | 10 | // expected-error@-1 {{functions that differ only in their return type cannot be overloaded}} |
| 11 | // expected-note@Inputs/linkage-merge-foo.h:2 {{previous declaration is here}} |