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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [warn4.C] - Rev 693

Compare with Previous | Blame | View Log

// Warn if we try to give an instantiation visibility after it's already
// been instantiated.

// { dg-require-visibility "" }

template <class T> struct A { void f (T); };
template <class T> void A<T>::f (T) { }

A<double> ad;
template struct __attribute ((visibility ("hidden"))) A<double>; // { dg-warning "already defined" }

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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