forked from qt-creator/qt-creator
Accept gcc attributes in cv-qualifiers.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
load(qttest_p4)
|
||||
include(../shared/shared.pri)
|
||||
QT = core
|
||||
|
||||
SOURCES += tst_ast.cpp
|
||||
|
@@ -36,6 +36,9 @@ public:
|
||||
{ return parse(source, TranslationUnit::ParseStatement); }
|
||||
|
||||
private slots:
|
||||
// declarations
|
||||
void gcc_attributes_1();
|
||||
|
||||
// expressions
|
||||
void simple_name();
|
||||
void template_id();
|
||||
@@ -54,6 +57,13 @@ private slots:
|
||||
void objc_protocol_definition_1();
|
||||
};
|
||||
|
||||
void tst_AST::gcc_attributes_1()
|
||||
{
|
||||
QSharedPointer<TranslationUnit> unit(parseDeclaration("\n"
|
||||
"static inline void *__attribute__((__always_inline__)) _mm_malloc(size_t size, size_t align);"
|
||||
));
|
||||
}
|
||||
|
||||
void tst_AST::simple_name()
|
||||
{
|
||||
QSharedPointer<TranslationUnit> unit(parseExpression("a"));
|
||||
|
Reference in New Issue
Block a user