summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/attr_exclusions1.d
blob: 90d4e5d77e66951c203cfcd3ab39e6ccfc204b6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do compile }

import gcc.attributes;

// always_inline

@noinline
@always_inline
void i0(); // { dg-warning "ignoring attribute .always_inline. because it conflicts with attribute .noinline." }

@target_clones("")
@always_inline
void i1(); // { dg-warning "ignoring attribute .always_inline. because it conflicts with attribute .target_clones." }

// noinline

@always_inline
@noinline
void n0(); // { dg-warning "ignoring attribute .noinline. because it conflicts with attribute .always_inline." }