Test that #pragma diagnoistics does not cause problems.

This commit is contained in:
Axel Naumann 2014-07-01 14:38:07 +02:00 committed by sftnight
parent 90bac69568
commit 41d9497052

View File

@ -8,10 +8,16 @@
// RUN: %cling %s | FileCheck %s // RUN: %cling %s | FileCheck %s
// same test as test_01.c but ensuring the .c file to be processed // Ensure the .c file to be processed
// is in the working directory (issue ROOT-6244) // is in the working directory (issue ROOT-6244)
// RUN: cd `dirname %s` ; %cling %s | FileCheck %s // RUN: cd `dirname %s` ; %cling %s | FileCheck %s
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wpadded"
#endif
extern "C" int printf(const char*,...); extern "C" int printf(const char*,...);
const char* defaultArgV[] = {"A default argument", "", 0}; const char* defaultArgV[] = {"A default argument", "", 0};