summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr77521.c
blob: f6b1e3ed2690d7c2aba3d7d68de717d15a26ae85 (plain)
1
2
3
4
5
6
7
8
/* PR c/77521 - %qc format directive should quote non-printable characters.
   Verify that non-printable characters in assembly constraints are quoted
   and not allowed to be printed raw.  */

void f (int a, int b)
{
  __asm__ ("combine %2, %0" : "=r" (a) : "0" (a), "\n" (b));   /* { dg-error "invalid punctuation .\\\\x0a. in constraint" } */
}