llvm-for-llvmta/tools/clang/test/Modules/linkage-merge.cpp
Nils Hölscher 7f403f4f1e added clang
2022-04-25 13:02:35 +02:00

12 lines
375 B
C++

// 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}}