Debian Codegraph @

gcc/testsuite/g++.dg/modules/gnu-inline-1_b.C

raw
1 // PR c++/119154
2 // { dg-additional-options "-fmodules" }
3
4 void bar();
5 void decl(); // { dg-warning "used but never defined" }
6 import foo;
7
8 void test_b() {
9 bar();
10 decl();
11 }
12
13 // A function only defined with gnu_inline should not be emitted here.
14 // { dg-final { scan-assembler-not "_Z3barv:" } }