Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/uninit-C-O0.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 1830386684a0 |
rev | line source |
---|---|
111 | 1 /* Spurious uninitialized variable warning, inspired by libgcc2.c. */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "-Wuninitialized" } */ | |
4 | |
5 /* Not all platforms support TImode integers. */ | |
6 #if (defined(__LP64__) && !defined(__hppa__)) || defined(__SPU__) | |
7 typedef int TItype __attribute__ ((mode (TI))); | |
8 #else | |
9 typedef long TItype; | |
10 #endif | |
11 | |
12 | |
13 TItype | |
14 __subvdi3 (TItype a, TItype b) | |
15 { | |
16 TItype w; | |
17 | |
18 w = a - b; | |
19 | |
20 return w; | |
21 } |