Ejemplo n.º 1
0
Archivo: test.cpp Proyecto: 8l/kalmar
int main()
{
    #ifdef NAMESPACE_ENABLE
    TYPE_SPECIFIER (DECL_MODIFIER1 *pointer)(PARAMETERS) CV_QUALIFIER REF_QUALIFIER __CPU_ONLY_EXPLICIT EXCEPTION_SPECIFICATION -> TRAILING_RETURN_TYPE = &NS::func;
    return pointer(PARAMETER_VALUES) == RETURN_VALUE ? 0 : 1;
    #else
    TYPE_SPECIFIER (DECL_MODIFIER1 *pointer)(PARAMETERS) CV_QUALIFIER REF_QUALIFIER __CPU_ONLY_EXPLICIT EXCEPTION_SPECIFICATION -> TRAILING_RETURN_TYPE = &func;
    return pointer(PARAMETER_VALUES) == RETURN_VALUE ? 0 : 1;
    #endif
}
Ejemplo n.º 2
0
#include "amptest/restrict.h"

#ifdef UDT_ENABLE
struct UDT
{
    UDT() : x(0) {};
    UDT(int x) : x(x) {};
    bool operator==(const UDT& other)
    {
        return other.x == this->x;
    }
    int x;
};
#endif


void func(LEADING_PARAMETER DECL_SPECIFIERS TYPE_SPECIFIER (DECL_MODIFIER1 *pointer)(PARAMETERS) __CPU_ONLY_EXPLICIT EXCEPTION_SPECIFICATION TRAILING_PARAMETER);
          
void func(LEADING_PARAMETER DECL_SPECIFIERS TYPE_SPECIFIER (DECL_MODIFIER1 *pointer)(PARAMETERS) __CPU_ONLY_EXPLICIT EXCEPTION_SPECIFICATION TRAILING_PARAMETER)
{
    return;
}

int main()
{
    // if it compiles it passes
    return 0;
}