Added simple test with CPP guarded diagram [ci skip].