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