OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [typeinfo1.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/26984
2
// lazily generated typeinfos should not be affected by #pragma vis, but
3
// they should be affected by the visibility of the type they describe.
4
 
5
// { dg-require-visibility "" }
6
// { dg-options "-fvisibility-inlines-hidden" }
7
// { dg-final { scan-not-hidden "_ZTIPPi" } }
8
// { dg-final { scan-not-hidden "_ZTSPPi" } }
9
// { dg-final { scan-hidden "_ZTIP1A" } }
10
// { dg-final { scan-hidden "_ZTSP1A" } }
11
 
12
#include 
13
 
14
#pragma GCC visibility push(hidden)
15
const std::type_info* t = &(typeid(int **));
16
struct A { };
17
#pragma GCC visibility pop
18
 
19
const std::type_info* t2 = &(typeid(A *));

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.