[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / 2003-10-02-UnionLValueError.c
blob180eb1080be9f2070a84df1856a365e97b637978
1 // RUN: %clang_cc1 -emit-llvm %s -o /dev/null
3 int sprintf(char * restrict str, const char * restrict format, ...);
4 union U{
5 int i[8];
6 char s[80];
7 };
9 void format_message(char *buffer, union U *u) {
10 sprintf(buffer, u->s);