Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/cpp0x/nolinkage1.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
// DR 757 allows using types without linkage in declarations with linkage. // Test that this doesn't lead to link-time collisions. // { dg-additional-sources "nolinkage1a.cc" } // { dg-do link { target c++11 } } #include "nolinkage1.h" typedef struct { int i; } *AP; void f(AP) { } A<AP> a; static void g() { struct B { }; A<B> a; } int main() { g(); f(0); return 0; }