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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.benjamin
/
15351-2.C
blob
931f50f62359dec70556dc82a758394a0606fd60
1
// { dg-do run }
2
// { dg-options "-fconst-strings" }
3
// 981203 bkoz
4
// g++/15351 + test
5
6
#include <assert.h>
7
8
bool gtest;
9
10
struct acapulco {
11
acapulco(const char *) { gtest = true; }
12
acapulco(char *) { gtest = false; }
13
};
14
15
void foo(void)
16
{
17
acapulco("some such string\n");
18
}
19
20
int main()
21
{
22
foo();
23
if (!gtest)
24
assert (0);
25
26
return !gtest;
27
}
28