| Andy Gibbs | fcc699a | 2013-04-17 08:06:46 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| Richard Smith | 47972af | 2015-06-16 00:08:24 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -verify -fmodules -fimplicit-module-maps -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 | 9e2341d | 2015-03-23 03:25:59 +0000 | [diff] [blame] | 10 | // expected-error@9 {{functions that differ only in their return type cannot be overloaded}} |
| 11 | // expected-note@Inputs/linkage-merge-foo.h:2 {{previous declaration is here}} |