Add crash utility to CalamaresUtils.

This commit is contained in:
Teo Mrnjavac 2015-11-03 12:56:38 +01:00
parent 391b52427a
commit e59418e880
2 changed files with 10 additions and 0 deletions

View file

@ -329,4 +329,12 @@ obscure( const QString& string )
}
void
crash()
{
volatile int* a = (int*)(NULL);
*a = 1;
}
}

View file

@ -54,6 +54,8 @@ namespace CalamaresUtils
DLLEXPORT QString removeDiacritics( const QString& string );
DLLEXPORT QString obscure( const QString& string );
DLLEXPORT void crash();
}
#endif // CALAMARESUTILS_H