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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [asm10.C] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// PR inline-asm/32109
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
 
5
struct A { int i[3]; ~A (); };
6
struct A a;
7
struct B { struct A c; int i; B (); } b;
8
 
9
B::B ()
10
{
11
  __asm ("" : : "r" (a));       // { dg-error "impossible constraint|non-memory input" }
12
  __asm ("" : : "r" (b.c));     // { dg-error "impossible constraint|non-memory input" }
13
  __asm ("" : : "r" (c));       // { dg-error "impossible constraint|non-memory input" }
14
}

powered by: WebSVN 2.1.0

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