Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.old-deja/g++.ext/pretty.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do assemble } // Test for PRETTY_FUNCTION class SV; class SVTable // : public Debug { // It is an array to pointer to a SV. SV ** array; // This is the size of array. int maxCount; // This is the current element count. int count; void fatal_error (const char *f, ...); public: SVTable (int size, const char *d); SVTable (); SVTable (const SVTable &); ~SVTable () {} }; SVTable::SVTable (int size, const char *d) : maxCount (size), count (0)// , Debug (d) { if (size < 0) { fatal_error ("%s: Invalid size: %d\n", __PRETTY_FUNCTION__, size); } array = (SV **) new SV * [size]; if (array == 0) { fatal_error ("%s: Failed to allocate array\n", __PRETTY_FUNCTION__); } }