Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/ext/visibility/anon6.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR c++/33094 // { dg-final { scan-assembler "1BIiE1cE" } } // { dg-final { scan-assembler-not "globl.*1BIiE1cE" } } // { dg-final { scan-assembler-not "comdat" } } // { dg-final { scan-assembler-not "weak" } } // { dg-final { scan-assembler-not "1AIiE1cE" } } // Test that B<int>::c is emitted as an internal symbol, and A<int>::c is // not emitted. namespace { template <typename T> class A { virtual T f1() { return c; } static const T c = 0; }; template <typename T> class B { __attribute__ ((__used__)) static const T c = 0; }; template <typename T> const T B<T>::c; template class A<int>; template class B<int>; }