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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr37772.c] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR c/37772 */
2
/* { dg-do compile } */
3
/* { dg-options "" } */
4
 
5
void
6
foo ()
7
{
8
  int i;
9
  asm ();                 /* { dg-error "expected string literal before" } */
10
  asm (1);                /* { dg-error "expected string literal before" } */
11
  asm (int);              /* { dg-error "expected string literal before" } */
12
  asm (: "=r" (i));       /* { dg-error "expected string literal before" } */
13
  asm (1 : "=r" (i));     /* { dg-error "expected string literal before" } */
14
  asm (int : "=r" (i));   /* { dg-error "expected string literal before" } */
15
  asm (: : "r" (i));      /* { dg-error "expected string literal before" } */
16
  asm (1 : : "r" (i));    /* { dg-error "expected string literal before" } */
17
  asm (int : : "r" (i));  /* { dg-error "expected string literal before" } */
18
  asm (: : : "memory");   /* { dg-error "expected string literal before" } */
19
  asm (1 : : : "memory"); /* { dg-error "expected string literal before" } */
20
}

powered by: WebSVN 2.1.0

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