Home | History | Annotate | Download | only in Modules
      1 // RUN: rm -rf %t
      2 // RUN: %clang_cc1 -verify -fmodules -fmodules-cache-path=%t -I %S/Inputs %s
      3 
      4 #include "linkage-merge-bar.h"
      5 
      6 static int f(int);
      7 int f(int);
      8 
      9 static void g(int);
     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}}
     12