mirror of
https://github.com/vgough/encfs.git
synced 2024-12-22 06:30:48 +01:00
5f0806c5cc
git-vendor-name: easylogging git-vendor-dir: vendor/github.com/muflihun/easyloggingpp git-vendor-repository: https://github.com/muflihun/easyloggingpp git-vendor-ref: master
23 lines
454 B
C++
23 lines
454 B
C++
//
|
|
// This file is part of Easylogging++ samples
|
|
// Smart pointer null check
|
|
//
|
|
// Revision 1.0
|
|
// @author mkhan3189
|
|
//
|
|
|
|
#include "easylogging++.h"
|
|
#include <memory>
|
|
|
|
INITIALIZE_EASYLOGGINGPP
|
|
|
|
int main(void) {
|
|
std::unique_ptr<std::string> test2(new std::string);
|
|
CHECK_NOTNULL(test2) << "And I didn't expect this to be null anyway";
|
|
|
|
std::unique_ptr<int> test3;
|
|
CHECK_NOTNULL(test3) << "It should crash here";
|
|
|
|
return 0;
|
|
}
|