mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-05-14 09:56:33 +00:00

the identifier table. This is redundant, since the TU-scope lookups are also serialized as part of the TU DeclContext, and wasteful in a number of ways. We still emit the decls for PCH / preamble builds, since for those we want identical results, not merely semantically equivalent ones. llvm-svn: 242855
12 lines
375 B
C++
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}}
|