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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [c-c++-common/] [pr51768.c] - Blame information for rev 686

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 686 jeremybenn
/* PR middle-end/51768 */
2
/* { dg-do compile } */
3
/* { dg-options "" } */
4
 
5
void
6
foo (void)
7
{
8
  asm goto ("" : : : : lab, lab, lab2, lab);    /* { dg-error "duplicate asm operand name" } */
9
lab:;
10
lab2:;
11
}
12
 
13
void
14
bar (void)
15
{
16
  asm goto ("" : : [lab] "i" (0) : : lab);       /* { dg-error "duplicate asm operand name" } */
17
lab:;
18
}
19
 
20
void
21
baz (void)
22
{
23
  int x;
24
  asm ("" : [lab] "=r" (x) : [lab] "r" (x));    /* { dg-error "duplicate asm operand name" } */
25
}

powered by: WebSVN 2.1.0

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