1*67e74705SXin Li // RUN: %clang_cc1 -analyze -std=c++11 -analyzer-checker=core,unix.Malloc,debug.ExprInspection -analyzer-config cfg-temporary-dtors=true -Wno-null-dereference -verify %s 2*67e74705SXin Li // expected-no-diagnostics 3*67e74705SXin Li 4*67e74705SXin Li #include "Inputs/system-header-simulator-cxx.h" 5*67e74705SXin Li 6*67e74705SXin Li namespace Cxx11BraceInit { 7*67e74705SXin Li struct Foo { ~FooCxx11BraceInit::Foo8*67e74705SXin Li ~Foo() {} 9*67e74705SXin Li }; 10*67e74705SXin Li testInitializerList()11*67e74705SXin Li void testInitializerList() { 12*67e74705SXin Li for (Foo foo : {Foo(), Foo()}) {} 13*67e74705SXin Li } 14*67e74705SXin Li } 15*67e74705SXin Li 16