Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / 20050603-1.c
blob041551ba5ae3607561f2783e341bb47890365931
1 /* { dg-do run { target powerpc*-*-* } } */
2 /* { dg-options "-O2" } */
3 #include <locale.h>
4 #include <stdlib.h>
5 register int *testreg asm ("r29");
7 int x;
8 int y;
9 int *ext_func (int *p) { return p; }
11 void test_reg_save_restore (int*) __attribute__((noinline));
12 void
13 test_reg_save_restore (int *p)
15 setlocale (LC_ALL, "C");
16 testreg = ext_func(p);
18 main() {
19 testreg = &x;
20 test_reg_save_restore (&y);
21 if (testreg != &y)
22 abort ();
23 return 0;