blob: 2f08e293af805de85961b16cc7c63742c2a20919 [file] [log] [blame]
/* APPLE LOCAL file inline asm labels in templates 6606502 */
/* { dg-do run } */
/* { dg-options "-fasm-blocks" } */
/* Radar 6606502 */
class Foo {
public:
static void dummy(){}
};
class Foo1 {
public:
static void dummy(){}
};
template<class T>
static void MyFunc() {
asm {
jmp $mylabel
$mylabel:
}
T::dummy();
}
int main(int argc, char** argv)
{
MyFunc<Foo>();
MyFunc<Foo1>();
return 0;
}