gcc/testsuite/gcc.target/riscv/rvv/base/poly-selftest-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-march=rv64gcv -mabi=lp64d -O0 -fself-test=$srcdir/selftests -mrvv-vector-bits=zvl -S" } */ |
| 3 | |
| 4 | /* Verify that -fself-test does not fail on a non empty source. */ |
| 5 | |
| 6 | int i; void bar(); void foo() |
| 7 | { |
| 8 | while (i--) |
| 9 | bar(); |
| 10 | } |
| 11 | |
| 12 | /* { dg-regexp {^-fself-test: [0-9]+ pass\(es\) in [.0-9]+ seconds$|.*: note: self-tests are not enabled in this build$} } */ |