blob: e582733fd8a5840d12bc9ca4d2a4fb3923454254 (
plain)
1
2
3
4
5
6
7
8
9
|
// RUN: %clang_cc1 -triple i686-pc-linux-gnu -emit-llvm-only %s -verify
// RUN: %clang_cc1 -triple i686-pc-linux-gnu -femit-all-decls -emit-llvm-only %s -verify
void foo(void *p) __asm("_ZN1SC2Ev");
void foo(void *p) { } // expected-note {{previous}}
struct S {
S() {} // expected-error {{definition with same mangled name as another definition}}
} s;
|