xref: /llvm-project/clang/test/AST/dynamic-alloc-lvalue.cpp (revision 2e7d711a106170185e9bbbf15115613d9a5854c5)
1 // RUN: %clang_cc1 -emit-pch -o %t %s
2 
3 // Test that serialization/deserialization of a DynamicAllocLValue
4 // variant of APValue does not crash.
5 
6 #ifndef HEADER
7 #define HEADER
8 
9 struct A {  int *p; };
10 const A &w = A{ new int(10) };
11 
12 #endif
13