1 /* { dg-do run } */
2 /* { dg-options "-O2 -fPIC" } */
3 /* { dg-require-effective-target ia32 } */
4 /* { dg-require-effective-target fpic } */
5 
6 typedef int tt, *lptt;
7 
8 int __attribute__((__stdcall__)) bar(lptt);
9 
bar(tt * x)10 int __attribute__((__stdcall__)) bar(tt *x)
11 {
12   return 0;
13 }
14 
15 int
foo(void)16 foo (void)
17 {
18   return bar (0);
19 }
20 
21 int
main()22 main()
23 {
24   return foo ();
25 }
26