Commit 69d4f56d by Alexandre Oliva Committed by Alexandre Oliva

* gcc.dg/20000108-1.c: New test.

From-SVN: r31286
parent dc540e4d
2000-01-08 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* gcc.dg/20000108-1.c: New test.
2000-01-05 Nathan Sidwell <nathan@acm.org>
* g++.old-deja/g++.ns/koenig8.C: New test.
......
/* Copyright (C) 2000 Free Software Foundation.
by Alexandre Oliva <oliva@lsd.ic.unicamp.br> */
/* { dg-do run } */
/* { dg-options "-O3" } */
void foo () {} /* unused, but essential to trigger the bug */
int main () {
int i;
/* use asms to prevent optimizations */
/* i = -1; */ asm ("" : "=r" (i) : "0" (-1));
/* i = 1; */ asm ("" : "=r" (i) : "0" (i ? 1 : 2));
if (i != 1)
abort();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment