repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
rtti
/
fn-quals.C
blob
75d24f8a9f688b87923fddfd30ec1289f95b78a6
1
// PR c++/48665
2
3
#include <typeinfo>
4
extern "C" void abort();
5
6
template<class A,class B> void f() {
7
if (typeid(A)==typeid(B)) abort(); // { dg-error "qualified function" }
8
if (typeid(A*)==typeid(B*)) abort(); // { dg-error "qualified function" }
9
}
10
int main() {
11
f<void()const,void()>();
12
}