Daniel Dunbar | 8fbe78f | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -fsyntax-only -verify |
Andy Gibbs | c6e68da | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Eli Friedman | 7c9ba6a | 2008-09-02 05:19:23 +0000 | [diff] [blame] | 3 | |
| 4 | typedef union { |
Mike Stump | 11289f4 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 5 | union wait *__uptr; |
| 6 | int *__iptr; |
Eli Friedman | 7c9ba6a | 2008-09-02 05:19:23 +0000 | [diff] [blame] | 7 | } __WAIT_STATUS __attribute__ ((__transparent_union__)); |
| 8 | |
| 9 | extern int wait (__WAIT_STATUS __stat_loc); |
| 10 | |
| 11 | void fastcgi_cleanup() { |
Mike Stump | 11289f4 | 2009-09-09 15:08:12 +0000 | [diff] [blame] | 12 | int status = 0; |
| 13 | wait(&status); |
Eli Friedman | 7c9ba6a | 2008-09-02 05:19:23 +0000 | [diff] [blame] | 14 | } |
| 15 | |