blob: 5c9024b8edf7d50d7c8af76217536c5b7b29d95b [file] [log] [blame]
Jordan Rose398fb002014-04-01 16:39:33 +00001// 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// expected-no-diagnostics
3
4#include "Inputs/system-header-simulator-cxx.h"
5
6namespace Cxx11BraceInit {
7 struct Foo {
8 ~Foo() {}
9 };
10
11 /* FIXME: Don't crash here.
12 void testInitializerList() {
13 for (Foo foo : {Foo(), Foo()}) {}
14 } */
15}