aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.dg/attr_noplt1.d
blob: 73a2fb53704e024ac8c9644d33e4edb7eb2ecb18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do compile { target x86_64-*-linux* } }
// { dg-options "-O2 -fno-pic" }

import gcc.attributes;

@noplt int func();

@noplt int var = 0; // { dg-warning ".noplt. attribute ignored" }

int main()
{
    return func();
}