pass machinemoduleinfo down into getSymbolForDwarfGlobalReference,
[llvm/avr.git] / test / FrontendC / object_size.c
blob0ddd66bc38cb66d57382a2bc624a1f157aa9b0c8
1 // RUN: %llvmgcc -S -emit-llvm -O1 %s -o - | grep ret | grep {\\-1} | count 1
2 // RUN: %llvmgcc -S -emit-llvm -O1 %s -o - | grep ret | grep {0} | count 1
3 // RUN: %llvmgcc -S -emit-llvm -O1 %s -o - | grep ret | grep {8} | count 1
5 unsigned t1(void *d) {
6 return __builtin_object_size(d, 0);
9 unsigned t2(void *d) {
10 return __builtin_object_size(d, 2);
13 char buf[8];
14 unsigned t3() {
15 return __builtin_object_size(buf, 0);