cling/test/Plugins/Simple.C
Vassil Vassilev 38eb2b89ba Allow plugins to handle custom pragmas.
This will help clad implement pattern such as:
#pragma clad on
// code which needs derivation
#pragma clad off
2018-10-08 21:44:55 +02:00

15 lines
321 B
C

// RUN: cat %s | %cling -fplugin=%cling_obj_root/tools/plugins/example/libclingDemoPlugin%shlibext | FileCheck %s
// CHECK:Action::ParseArgs
// CHECK-NEXT:Action::CreateASTConsumer
int dummy = 15;
// CHECK-NEXT:PluginConsumer::HandleTopLevelDecl
#pragma demoplugin
// CHECK:DemoPluginPragmaHandler::HandlePragma
.q