diff options
author | Julian Büning <julian.buening@rwth-aachen.de> | 2018-10-28 20:43:48 +0100 |
---|---|---|
committer | Cristian Cadar <c.cadar@imperial.ac.uk> | 2019-05-30 09:45:21 +0100 |
commit | 07581cb13d272a01adf7624ab84b6252fc7d525c (patch) | |
tree | 4e416b052d60f470ef5c07fd99451daf168a4009 /test/Feature/FunctionAlias.c | |
parent | 3629e3ef0fc999ba9c1e0f43db061bdcc875d735 (diff) | |
download | klee-07581cb13d272a01adf7624ab84b6252fc7d525c.tar.gz |
fix tests for macOS
Diffstat (limited to 'test/Feature/FunctionAlias.c')
-rw-r--r-- | test/Feature/FunctionAlias.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Feature/FunctionAlias.c b/test/Feature/FunctionAlias.c index 2fcb5beb..e1d11d8c 100644 --- a/test/Feature/FunctionAlias.c +++ b/test/Feature/FunctionAlias.c @@ -65,7 +65,12 @@ int __attribute__ ((noinline)) twoshorts2int(short a, short b) { return a + b + int __attribute__ ((noinline)) twointsmul(int a, int b) { return a * b + 5; } int __attribute__ ((noinline)) somethingwithtwoints(int a, int b) { return 2 * a + 3 * b; } +#ifdef __APPLE__ +// FIXME: __attribute__((weak_import, alias("minusone"))) does not work on Mac OS X 10.12.6 +short shortminusone(short a) { return minusone(a); } +#else extern short shortminusone(short) __attribute__((alias("minusone"))); +#endif int main() { short a = 2; |