Debian Codegraph @

gcc/testsuite/gdc.dg/attr_noplt1.d

raw
1 // { dg-do compile { target x86_64-*-linux* } }
2 // { dg-options "-O2 -fno-pic" }
3
4 import gcc.attributes;
5
6 @noplt int func();
7
8 @noplt int var = 0; // { dg-warning ".noplt. attribute ignored" }
9
10 int main()
11 {
12 return func();
13 }