[NFC][clang] Add a CHECK lines to tests checking offsetof-like expressions
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Wed, 22 Sep 2021 09:09:17 +0000 (10:09 +0100)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Tue, 28 Sep 2021 16:57:36 +0000 (17:57 +0100)
commita18181931f991b04caea297e723db415756f09a0
treebfa5cce9ddde75da5815816659943658cb43870a
parent90179f2323ac4ca0ed28ee94b9a61b565c1b61b6
[NFC][clang] Add a CHECK lines to tests checking offsetof-like expressions

I am looking at constant-folding changes that could affect these tests, so
check that it emits the expected global value instead of just checking
that it doesn't crash.
clang/test/CodeGen/2005-01-02-ConstantInits.c
clang/test/CodeGenCXX/2005-01-03-StaticInitializers.cpp
clang/test/CodeGenCXX/2008-05-07-CrazyOffsetOf.cpp