]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/2003-10-02-UnionLValueError.c
Vendor import of clang release_30 branch r142614:
[FreeBSD/FreeBSD.git] / test / CodeGen / 2003-10-02-UnionLValueError.c
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 }