aboutsummaryrefslogtreecommitdiff
path: root/clang/test/AST/dynamic-alloc-lvalue.cpp
blob: 2a426638d0b79307eeac286423dc43e887722787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -emit-pch -o %t %s

// Test that serialization/deserialization of a DynamicAllocLValue
// variant of APValue does not crash.

#ifndef HEADER
#define HEADER

struct A {  int *p; };
const A &w = A{ new int(10) };

#endif