Eric Christopher | b025734 | 2011-07-26 21:42:32 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -emit-llvm %s -o /dev/null |
2 | |||||
3 | int sprintf(char * restrict str, const char * restrict format, ...); | ||||
4 | union U{ | ||||
5 | int i[8]; | ||||
6 | char s[80]; | ||||
7 | }; | ||||
8 | |||||
9 | void format_message(char *buffer, union U *u) { | ||||
10 | sprintf(buffer, u->s); | ||||
11 | } |