FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.benjamin / 15351-2.C
blob98ecaac29a1d36c95b4baa1d6ad23957f724cf49
1 // 981203 bkoz
2 // g++/15351 + test
3 // Special g++ Options: -fconst-strings
5 #include <assert.h>
7 bool gtest;
9 struct acapulco {
10   acapulco(const char *) { gtest = true; }
11   acapulco(char *) { gtest = false; }
14 void foo(void)
16   acapulco("some such string\n");
19 int main() 
21   foo();
22   if (!gtest)
23     assert (0);
25   return !gtest;