mangle18-1.C: Modify regexp to test for `[...
2003-12-18 Andrew Pinski <pinskia@physics.uc.edu> * g++.dg/abi/mangle18-1.C: Modify regexp to test for `[: \t\n]' at end of label name and allow for USER_LABEL_PREFIX == "_" names. * g++.dg/abi/mangle18-2.C: Likewise. * g++.dg/abi/mangle19-1.C: Likewise. * g++.dg/abi/mangle19-2.C: Likewise. * g++.dg/abi/mangle20-1.C: Likewise. * g++.dg/abi/mangle20-2.C: Likewise. From-SVN: r74805
This commit is contained in:
parent
373a04f11b
commit
0b667ed86d
@ -1,3 +1,13 @@
|
||||
2003-12-18 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
* g++.dg/abi/mangle18-1.C: Modify regexp to test for `[: \t\n]' at end
|
||||
of label name and allow for USER_LABEL_PREFIX == "_" names.
|
||||
* g++.dg/abi/mangle18-2.C: Likewise.
|
||||
* g++.dg/abi/mangle19-1.C: Likewise.
|
||||
* g++.dg/abi/mangle19-2.C: Likewise.
|
||||
* g++.dg/abi/mangle20-1.C: Likewise.
|
||||
* g++.dg/abi/mangle20-2.C: Likewise.
|
||||
|
||||
2003-12-18 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* gcc.dg/bitfld-1.c: Expect warnings for enum bitfields.
|
||||
|
@ -17,7 +17,7 @@ template <void (*)()> struct S {};
|
||||
template <int *> struct T {};
|
||||
|
||||
void f (S<Foo>){}
|
||||
// { dg-final { scan-assembler "\n_Z1f1SIXadL_Z3FooEEE:" } }
|
||||
// { dg-final { scan-assembler "\n_?_Z1f1SIXadL_Z3FooEEE\[: \t\n\]" } }
|
||||
|
||||
void g (T<&NMS::V>){}
|
||||
// { dg-final { scan-assembler "\n_Z1g1TIXadL_Z1VEEE:" } }
|
||||
// { dg-final { scan-assembler "\n_?_Z1g1TIXadL_Z1VEEE\[: \t\n\]" } }
|
||||
|
@ -17,7 +17,7 @@ template <void (*)()> struct S {};
|
||||
template <int *> struct T {};
|
||||
|
||||
void f (S<Foo>){} // { dg-warning "mangled name" }
|
||||
// { dg-final { scan-assembler "\n_Z1f1SIXadL3FooEEE:" } }
|
||||
// { dg-final { scan-assembler "\n_?_Z1f1SIXadL3FooEEE\[: \t\n\]" } }
|
||||
|
||||
void g (T<&NMS::V>){} // { dg-warning "mangled name" }
|
||||
// { dg-final { scan-assembler "\n_Z1g1TIXadL_ZN3NMS1VEEEE:" } }
|
||||
// { dg-final { scan-assembler "\n_?_Z1g1TIXadL_ZN3NMS1VEEEE\[: \t\n\]" } }
|
||||
|
@ -10,4 +10,4 @@
|
||||
extern int N;
|
||||
template <int &> struct S {};
|
||||
void n (S<N>) {}
|
||||
// { dg-final { scan-assembler "\n_Z1n1SILZ1NEE:" } }
|
||||
// { dg-final { scan-assembler "\n_?_Z1n1SILZ1NEE\[: \t\n\]" } }
|
||||
|
@ -10,4 +10,4 @@
|
||||
extern int N;
|
||||
template <int &> struct S {};
|
||||
void n (S<N>) {} // { dg-warning "mangled name" }
|
||||
// { dg-final { scan-assembler "\n_Z1n1SIXadL_Z1NEEE:" } }
|
||||
// { dg-final { scan-assembler "\n_?_Z1n1SIXadL_Z1NEEE\[: \t\n\]" } }
|
||||
|
@ -14,6 +14,6 @@ static const int I=1;
|
||||
static const int J=2;
|
||||
|
||||
template void f<1>(int (*)[2]);
|
||||
// { dg-final { scan-assembler "\n_Z1fILi1EEvPA2_i:" } }
|
||||
// { dg-final { scan-assembler "\n_?_Z1fILi1EEvPA2_i\[: \t\n\]" } }
|
||||
template void g<1>(int (*)[3]);
|
||||
// { dg-final { scan-assembler "\n_Z1gILi1EEvPAplT_Li2E_i:" } }
|
||||
// { dg-final { scan-assembler "\n_?_Z1gILi1EEvPAplT_Li2E_i\[: \t\n\]" } }
|
||||
|
@ -11,6 +11,6 @@ template <int I> void f(int (*)[2]) {}
|
||||
template <int I> void g(int (*)[I+2]) {}
|
||||
|
||||
template void f<1>(int (*)[2]); // { dg-warning "mangled name" }
|
||||
// { dg-final { scan-assembler "\n_Z1fILi1EEvPALi2E_i:" } }
|
||||
// { dg-final { scan-assembler "\n_?_Z1fILi1EEvPALi2E_i\[: \t\n\]" } }
|
||||
template void g<1>(int (*)[3]);
|
||||
// { dg-final { scan-assembler "\n_Z1gILi1EEvPAplT_Li2E_i:" } }
|
||||
// { dg-final { scan-assembler "\n_?_Z1gILi1EEvPAplT_Li2E_i\[: \t\n\]" } }
|
||||
|
Loading…
Reference in New Issue
Block a user