Skip to content

Commit f6d743d

Browse files
committed
add commented out enum new expr list initialization test
1 parent 6b86a04 commit f6d743d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

clang/test/Analysis/initializer.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,15 @@ void considered_fields_initd() {
330330
delete S;
331331
}
332332

333+
enum Enum : int {
334+
};
335+
// FIXME: uncomment when CSA supports list init of enums
336+
void list_init_enum() {
337+
// Enum *E = new Enum{53};
338+
// clang_analyzer_eval(53 == *E); // should be TRUE
339+
// delete E;
340+
}
341+
333342
class PubClass {
334343
public:
335344
int foo;

0 commit comments

Comments
 (0)