repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ipa-cp: Perform operations in the appropriate types (PR 118097)
[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
}