<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TXT for details.
//------------------------------------------------------------------------------

// RUN: %cling %s 'args(42,"")' 2>&1 | FileCheck %s
//CHECK-NOT: {{.*error|note:.*}}
//CHECK: warning: function 'args' cannot be called with no arguments.

extern "C" int printf(const char* fmt, ...);

void args(int I, const char* R, const char* S = "ArgString") {


   printf("I=%d\n", I); // CHECK: I=42
   printf("S=%s\n", S); // CHECK: S=ArgString
   printf("R=%s\n", R);

}<commit_msg>Fixed Parser error when calling a macro with arguments.<commit_after>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public License. See
// LICENSE.TXT for details.
//------------------------------------------------------------------------------

//RUN: %cling %s 'args(42,"AAA)BBB")' 2>&1 | FileCheck %s
//RUN: %cling '.x %s(42,"AAA)BBB")' 2>&1 | FileCheck -check-prefix=CHECK-DOTX %s
//CHECK-NOT: {{.*error|note:.*}}
//CHECK-DOTX-NOT: {{.*error|note:.*}}
//CHECK: warning: function 'args' cannot be called with no arguments.

extern "C" int printf(const char* fmt, ...);

void args(int I, const char* R,  const char* S = "ArgString") {

   printf("I=%d\n", I); // CHECK: I=42
   // CHECK-DOTX: I=42
   printf("S=%s\n", S); // CHECK: S=ArgString
   // CHECK-DOTX: S=ArgString
   printf("R=%s\n", R); // CHECK: R=AAA)BBB
   // CHECK-DOTX: R=AAA)BBB
}
{'fraction_non_alphanumeric': 0.3264221158958001, 'fraction_numerical': 0.009569377990430622, 'mean_word_length': 1.788148148148148, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3904395', 'n_tokens_mistral': 577, 'n_tokens_neox': 560, 'n_words': 188}