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