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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

// PR c++/20961
// Test for #pragma weak and __attribute__((weak)) being used together. 
// { dg-do compile }
// { dg-require-weak "" }
// { dg-options "" }

// { dg-final { scan-assembler "weak\[^ \t\]*\[ \t\]_?_Z3foov" } }

int foo ();
#pragma weak foo

int
__attribute__((weak))
foo ()
{
  return 0;
}

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.