mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-30 00:38:54 -04:00

using-declaration, and they declare the same function (either because the using-declaration is in the same namespace as the declaration it imports, or because they're both extern "C"), they do not conflict. llvm-svn: 200897
12 lines
353 B
C++
12 lines
353 B
C++
// RUN: rm -rf %t
|
|
// RUN: %clang_cc1 -verify -fmodules -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@-1 {{functions that differ only in their return type cannot be overloaded}}
|
|
// expected-note@Inputs/linkage-merge-foo.h:2 {{previous declaration is here}}
|