brintos

brintos / llvm-project-archived public Read only

0
0
Text · 382 B · 9376a98 Raw
13 lines · c
1// RUN: %clang_analyze_cc1 -analyzer-checker=debug.AnalysisOrder -analyzer-config debug.AnalysisOrder:PreStmtOffsetOfExpr=true,debug.AnalysisOrder:PostStmtOffsetOfExpr=true %s 2>&1 | FileCheck %s2#include "Inputs/system-header-simulator.h"3 4struct S {5  char c;6};7 8void test(void) {9  offsetof(struct S, c); 10}11 12// CHECK: PreStmt<OffsetOfExpr>13// CHECK-NEXT: PostStmt<OffsetOfExpr>