Fix g++.dg/abi/anon2.C with -std=c++98
* g++.dg/abi/anon2.C: Don't scan assembler for c++98. From-SVN: r208307
This commit is contained in:
parent
b75f28e1ae
commit
79bc1d65f1
@ -1,3 +1,7 @@
|
||||
2014-03-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
* g++.dg/abi/anon2.C: Don't scan assembler for c++98.
|
||||
|
||||
2014-03-04 Richard Biener <rguenther@suse.de>
|
||||
|
||||
PR tree-optimization/60382
|
||||
|
@ -6,9 +6,9 @@ namespace N1 {
|
||||
typedef enum { X, Y } A;
|
||||
typedef struct { } B;
|
||||
struct C {
|
||||
// { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZN2N11D1C3fn1ENS0_1BE" } }
|
||||
// { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZN2N11D1C3fn1ENS0_1BE" { target { ! c++98 } } } }
|
||||
static void fn1 (B) { }
|
||||
// { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZN2N11D1C3fn2ES1_" } }
|
||||
// { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZN2N11D1C3fn2ES1_" { target { ! c++98 } } } }
|
||||
static void fn2 (C) { }
|
||||
};
|
||||
} D;
|
||||
@ -22,9 +22,9 @@ namespace N2 {
|
||||
typedef enum { X, Y } A;
|
||||
typedef struct { } B;
|
||||
struct C {
|
||||
// { dg-final { scan-assembler-not ".weak\(_definition\)?\[ \t\]_?_ZN2N23._31C3fn1ENS0_1BE" } }
|
||||
// { dg-final { scan-assembler-not ".weak\(_definition\)?\[ \t\]_?_ZN2N23._31C3fn1ENS0_1BE" { target { ! c++98 } } } }
|
||||
static void fn1 (B) { } // { dg-error "no linkage" "" { target c++98 } }
|
||||
// { dg-final { scan-assembler-not ".weak\(_definition\)?\[ \t\]_?_ZN2N23._31C3fn2ES1_" } }
|
||||
// { dg-final { scan-assembler-not ".weak\(_definition\)?\[ \t\]_?_ZN2N23._31C3fn2ES1_" { target { ! c++98 } } } }
|
||||
static void fn2 (C) { } // { dg-error "no linkage" "" { target c++98 } }
|
||||
};
|
||||
} const D;
|
||||
@ -38,9 +38,9 @@ namespace N3 {
|
||||
typedef enum { X, Y } A;
|
||||
typedef struct { } B;
|
||||
template <class T> struct C {
|
||||
// { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZN2N31D1CIiE3fn1ENS0_1BE" } }
|
||||
// { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZN2N31D1CIiE3fn1ENS0_1BE" { target { ! c++98 } } } }
|
||||
static void fn1 (B) { }
|
||||
// { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZN2N31D1CIiE3fn2ES2_" } }
|
||||
// { dg-final { scan-assembler ".weak\(_definition\)?\[ \t\]_?_ZN2N31D1CIiE3fn2ES2_" { target { ! c++98 } } } }
|
||||
static void fn2 (C) { }
|
||||
};
|
||||
} D;
|
||||
@ -54,9 +54,9 @@ namespace N4 {
|
||||
typedef enum { X, Y } A;
|
||||
typedef struct { } B;
|
||||
template <class T> struct C {
|
||||
// { dg-final { scan-assembler-not ".weak\(_definition\)?\[ \t\]_?_ZN2N43._91CIiE3fn1ENS0_1BE" } }
|
||||
// { dg-final { scan-assembler-not ".weak\(_definition\)?\[ \t\]_?_ZN2N43._91CIiE3fn1ENS0_1BE" { target { ! c++98 } } } }
|
||||
static void fn1 (B) { } // { not-dg-error "no linkage" "" { target c++98 } }
|
||||
// { dg-final { scan-assembler-not ".weak\(_definition\)?\[ \t\]_?_ZN2N43._91CIiE3fn2ES2_" } }
|
||||
// { dg-final { scan-assembler-not ".weak\(_definition\)?\[ \t\]_?_ZN2N43._91CIiE3fn2ES2_" { target { ! c++98 } } } }
|
||||
static void fn2 (C) { } // { not-dg-error "no linkage" "" { target c++98 } }
|
||||
};
|
||||
} const D;
|
||||
|
Loading…
Reference in New Issue
Block a user