1 // REQUIRES: msp430-registered-target
2 // RUN: %clang -target msp430 -fPIC -S %s -o - | FileCheck %s
4 // Check the compilation does not crash as it was crashing before with "-fPIC" enabled
6 void *alloca(unsigned int size
);
9 short foo(char** data
, char encoding
)
11 char* encoding_addr
= alloca(sizeof(char));
12 *encoding_addr
= encoding
;
14 char tmp3
= *encoding_addr
;
16 short and = conv2
& 0xf;