blob: a23e6a47ab05b0f755827dfbbfbdbf08e39d608e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// RUN: %clang_cc1 -triple %itanium_abi_triple -fms-extensions -emit-llvm-only %s -verify
struct A
{
int x;
void foo() __unaligned;
void foo();
};
void A::foo() __unaligned
{
this->x++;
}
void A::foo() // expected-error {{definition with same mangled name as another definition}}
// expected-note@-6 {{previous definition is here}}
{
this->x++;
}
|