GabrielDosReis / ipr

Compiler-neutral Internal Program Representation for C++
BSD 3-Clause "New" or "Revised" License
222 stars 23 forks source link

Predicate for testing global region #163

Closed GabrielDosReis closed 3 years ago

GabrielDosReis commented 3 years ago

This patch adds a Region::global() predicate that holds for the global region, i.e. the region of the global scope.

Fix #33 .

Note: the patch also ensures that the tests are run with flags consistent with the build. Someone more versed in CMake should have a look and devise a better way to do this so we don't have two places to update.