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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [asm-pr24146.c] - Blame information for rev 455

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
 
3
/* Test that asm with no outputs are treated as volatile.  */
4
 
5
void f(int x)
6
{
7
  __asm__ ("extended asm not discarded" : : "r" (x));
8
}
9
 
10
void g (void)
11
{
12
  __asm__ ("simple asm not discarded");
13
}
14
/* { dg-final { scan-assembler "extended asm not discarded" } } */
15
/* { dg-final { scan-assembler "simple asm not discarded" } } */
16
 

powered by: WebSVN 2.1.0

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