You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
342 B
16 lines
342 B
7 months ago
|
// RUN: %clang_analyze_cc1 -std=c++11 -analyzer-checker=core,unix.Malloc,debug.ExprInspection -Wno-null-dereference -verify %s
|
||
|
// expected-no-diagnostics
|
||
|
|
||
|
#include "Inputs/system-header-simulator-cxx.h"
|
||
|
|
||
|
namespace Cxx11BraceInit {
|
||
|
struct Foo {
|
||
|
~Foo() {}
|
||
|
};
|
||
|
|
||
|
void testInitializerList() {
|
||
|
for (Foo foo : {Foo(), Foo()}) {}
|
||
|
}
|
||
|
}
|
||
|
|