Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/debug/dwarf2/pr87462.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
line wrap: on
line source
// { dg-additional-options "-dA -std=gnu++17 -gdwarf-4 -O1 -fdebug-types-section" } // reject .pseudo label, but "label" is ok. // { dg-final { scan-assembler-not "\[^L\"\]_ZN5Test18testFuncEv" } } // undefined ref to _ZN5Test18testFuncEv class Test1 { public: static int testFunc() { return 1; } }; template <typename T, T (*funcImpl)()> class TestWrapper { public: static T func() __attribute((noinline)) { return (*funcImpl)(); } }; int main() { return TestWrapper<int, &Test1::testFunc>::func(); }