summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/uninit-H.c
blob: 30f58308886346409d0857dc79f813689cc3b807 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR 14204 */
/* { dg-do compile } */
/* { dg-options "-O -Wall -Werror" } */

#if defined __alpha__
# define ASM __asm__("$30")
#elif defined __i386__
# define ASM __asm__("esp")
#elif defined __powerpc__
# define ASM __asm__("r1")
#else
# define ASM
#endif

void *load_PCB (void)
{
  register void *sp ASM;
  return sp;			/* { dg-bogus "uninitialized" } */
}