diff options
author | H.J. Lu <hjl@gcc.gnu.org> | 2009-06-22 06:52:40 -0700 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2009-06-22 06:52:40 -0700 |
commit | 3f53cdbe6721b84b0e0fd82e420921a685108395 (patch) | |
tree | 031664f2f3ff854005846de07c02ada35df79e48 | |
parent | 8e6e7620b347ac25f8e550a458f8e4c4fda262c9 (diff) | |
download | gcc-3f53cdbe6721b84b0e0fd82e420921a685108395.zip gcc-3f53cdbe6721b84b0e0fd82e420921a685108395.tar.gz gcc-3f53cdbe6721b84b0e0fd82e420921a685108395.tar.bz2 |
Add the missing g++.dg/torture/pr40492.C.
From-SVN: r148796
-rw-r--r-- | gcc/testsuite/g++.dg/torture/pr40492.C | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/torture/pr40492.C b/gcc/testsuite/g++.dg/torture/pr40492.C new file mode 100644 index 0000000..cab9426 --- /dev/null +++ b/gcc/testsuite/g++.dg/torture/pr40492.C @@ -0,0 +1,26 @@ +typedef unsigned short ushort; +class QChar { +public: + QChar( const QChar& c ); + ushort ucs; +}; +inline QChar::QChar( const QChar& c ) : ucs( c.ucs ) { }; +class QString { }; +class KoAutoFormat { +public: + struct TypographicQuotes { QChar begin, end; }; + TypographicQuotes getConfigTypographicDoubleQuotes() const { + return m_typographicDoubleQuotes; + } + TypographicQuotes m_typographicDoubleQuotes; +}; +class KoAutoFormatDia { + QChar oDoubleBegin, oDoubleEnd; + KoAutoFormat * m_docAutoFormat; + bool noSignal; + void changeAutoformatLanguage(void); +}; +void KoAutoFormatDia::changeAutoformatLanguage(void) +{ + oDoubleEnd= m_docAutoFormat->getConfigTypographicDoubleQuotes().end; +} |