1  
       2  /* { dg-do compile } */
       3  /* PR middle-end/110420 */
       4  /* PR middle-end/103979 */
       5  /* PR middle-end/98619 */
       6  /* Test that the middle-end does not remove the asm goto
       7     with an output. */
       8  
       9  static int t;
      10  void g(void);
      11  
      12  void f(void)
      13  {
      14    int  __gu_val;
      15    asm goto("#my asm "
      16       : "=&r"(__gu_val)
      17       :
      18       :
      19       : Efault);
      20    t = __gu_val;
      21    g();
      22  Efault:
      23  }
      24  
      25  /* Make sure "my asm " is still in the assembly. */
      26  /* { dg-final { scan-assembler "my asm " } } */