[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / 2005-03-06-OffsetOfStructCrash.c
blob352a7c84ee410202cd7b36477452f4b9e3b4cbc9
1 // RUN: %clang_cc1 %s -emit-llvm -o -
3 struct Y {};
4 struct XXX {
5 struct Y F;
6 };
8 void test1(void) {
9 (int)&((struct XXX*)(((void *)0)))->F;
12 void test2(void) {
13 &((struct XXX*)(((void *)0)))->F;