// RUN: %clang_analyze_cc1 -std=c++14 -analyzer-checker=optin.performance -analyzer-config optin.performance.Padding:AllowedPad=2 -verify %s
// Make sure that the C cases still work fine, even when compiled as C++.
;
// xxxexpected-warning@+1{{Excessive padding in 'struct LowAlignmentBase'}}
;
;
// xxxexpected-warning@+1{{Excessive padding in 'struct LowAlignmentBase2'}}
;
;
;
;
// constructed so as not to have tail padding
;
;
;
;
;
// currently not checked for
;
;
;
;
;
;
;
;
; // no-warning
;
;
;
;
;
;
;
typedef struct TypedefSandwich2 TypedefSandwich2;
;
;
G;
// expected-warning@+1{{Excessive padding in 'class (lambda}}
auto lambda1 = ;
auto lambda2 = ; // no-warning