PR c++/85553
[official-gcc.git] / gcc / testsuite / g++.dg / ext / asm3.C
blob0a0f837f0a76c8a8c94b6400f13a0535b046445e
1 // { dg-do compile }
3 // Copyright (C) 2002 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 16 Sep 2002 <nathan@codesourcery.com>
6 // PR 7015. ICE with asms
8 int two(int in)
10 #if __cplusplus <= 201402L
11   register
12 #endif
13   int out;
14   __asm__ ("" : "r" (out) : "r" (in));
15   return out;
18 // { dg-message "error:" "" { target *-*-* } 14 }