Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/modules/imp-inline-1_a.C
2023-03-06 14:48:14 +01:00

38 lines
542 B
C

// { dg-additional-options "-fmodules-ts -Wno-pedantic" }
module;
# 6 __FILE__ 1
struct Bob
{
// inline
static auto frob ()
{
}
};
# 14 "" 2
export module Foo;
// { dg-module-cmi Foo }
export struct Bill
{
// not inline
static auto dob ()
{
}
static inline auto frob ()
{
}
};
export inline auto GMF ()
{
return Bob::frob ();
}
// { dg-final { scan-assembler-not {_ZN3Bob4frobEv:} } }
// { dg-final { scan-assembler-not {_ZNW3Foo4Bill4frobEv:} } }
// { dg-final { scan-assembler {_ZNW3Foo4Bill3dobEv:} } }