gcc/testsuite/gcc.target/nvptx/alloca-1-unused-O1-sm_30.c
raw| 1 | /* { dg-do assemble } */ |
| 2 | /* { dg-options {-O1 -mno-soft-stack} } */ |
| 3 | /* { dg-additional-options -march=sm_30 } */ |
| 4 | /* { dg-additional-options -save-temps } */ |
| 5 | /* { dg-final { check-function-bodies {** } {} } } */ |
| 6 | |
| 7 | void f(void) |
| 8 | { |
| 9 | __builtin_alloca(123); /* { dg-warning "ignoring return value of '__builtin_alloca' declared with attribute 'warn_unused_result'" } */ |
| 10 | } |
| 11 | /* |
| 12 | ** f: |
| 13 | ** \.visible \.func f |
| 14 | ** { |
| 15 | ** ret; |
| 16 | */ |