repo.or.cz
/
llvm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Verify the predicates on icmp/fcmp. Suggested by Jeff Yasskin!
[llvm.git]
/
test
/
FrontendC++
/
2004-09-27-CompilerCrash.cpp
blob
f52baaf7058ccb6035f3cf83de87118a21526405
1
// RUN: %llvmgxx -S %s -o - | llvm-as -o /dev/null
2
3
struct
Pass
{} ;
4
template
<
typename PassName
>
5
Pass
*
callDefaultCtor
() {
return new
PassName
(); }
6
7
void
foo
(
Pass
*(*
C
)());
8
9
#include <string>
10
11
bool
foo
(
std
::
string
&
X
) {
12
return
X
.
empty
();
13
}