diff options
Diffstat (limited to 'test/Analysis/svalbuilder-logic.c')
-rw-r--r-- | test/Analysis/svalbuilder-logic.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Analysis/svalbuilder-logic.c b/test/Analysis/svalbuilder-logic.c new file mode 100644 index 000000000000..bc79f859053c --- /dev/null +++ b/test/Analysis/svalbuilder-logic.c @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -analyze -analyzer-checker=core,unix -verify %s + +// Testing core functionality of the SValBuilder. + +int SValBuilderLogicNoCrash(int *x) { + return 3 - (int)(x +3); +} |