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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.benjamin
/
15351-1.C
blob
755c3608fcb21bf4c21e85758c49da45352a65a6
1
// 981203 bkoz
2
// g++/15351 - test
3
// Special g++ Options: -fno-const-strings
4
5
#include <assert.h>
6
7
bool gtest;
8
9
struct acapulco {
10
acapulco(const char *) { gtest = false; }
11
acapulco(char *) { gtest = true; }
12
};
13
14
void foo(void)
15
{
16
acapulco("some such string\n");
17
}
18
19
int main()
20
{
21
foo();
22
if (!gtest)
23
assert (0);
24
25
return !gtest;
26
}
27