Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/Wunused-value-2.c @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Test -Wunused-value. Bug 30729. */ /* { dg-do compile } */ /* { dg-options "-Wunused-value" } */ /* Make sure va_arg does not cause a value computed is not used warning because it has side effects. */ #include <stdarg.h> int f(int t, ...) { va_list a; va_start (a, t); va_arg(a, int);/* { dg-bogus "value computed is not used" } */ int t1 = va_arg(a, int); va_end(a); return t1; }