1 // RUN: %clang_cc1 -std=c++14 -triple i386-apple-darwin10 -analyze -analyzer-checker=core.builtin,debug.ExprInspection -verify %s 2 3 void clang_analyzer_eval(int); 4 5 struct S { 6 int a = 3; 7 }; 8 S const sarr[2] = {}; definit()9void definit() { 10 int i = 1; 11 // FIXME: Should recognize that it is 3. 12 clang_analyzer_eval(sarr[i].a); // expected-warning{{UNKNOWN}} 13 } 14 15 int const arr[2][2] = {}; arr2init()16void arr2init() { 17 int i = 1; 18 // FIXME: Should recognize that it is 0. 19 clang_analyzer_eval(arr[i][0]); // expected-warning{{UNKNOWN}} 20 } 21