You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
375 B
12 lines
375 B
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -verify -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -I %S/Inputs %s
|
|
|
|
#include "linkage-merge-bar.h"
|
|
|
|
static int f(int);
|
|
int f(int);
|
|
|
|
static void g(int);
|
|
// 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}}
|