gcc/testsuite/gcc.dg/pr77521.c
raw| 1 | /* PR c/77521 - %qc format directive should quote non-printable characters. |
| 2 | Verify that non-printable characters in assembly constraints are quoted |
| 3 | and not allowed to be printed raw. */ |
| 4 | |
| 5 | void f (int a, int b) |
| 6 | { |
| 7 | __asm__ ("combine %2, %0" : "=r" (a) : "0" (a), "\n" (b)); /* { dg-error "invalid punctuation .\\\\x0a. in constraint" } */ |
| 8 | } |