0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Add comments to code that is required to not compile

This commit is contained in:
rbock 2018-06-26 08:07:08 +02:00
parent 76ec663cc6
commit ef01958b19
7 changed files with 31 additions and 0 deletions

View File

@ -33,6 +33,7 @@ function(test_constraint name pattern)
set_property(TEST ${test} PROPERTY PASS_REGULAR_EXPRESSION ${pattern})
endfunction()
# Compiling these is required to fail (testing some static_assert)
test_constraint(count_of_count "count\\(\\) cannot be used on an aggregate function")
test_constraint(max_of_max "max\\(\\) cannot be used on an aggregate function")
test_constraint(no_conversion_operator_if_null_not_trivial "cannot convert|no viable conversion")

View File

@ -23,6 +23,11 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* NOTE:
* This code must not compile (it is used to test a static_assert)
*/
#include "Sample.h"
#include "MockDb.h"
#include <sqlpp11/functions.h>

View File

@ -23,6 +23,11 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* NOTE:
* This code must not compile (it is used to test a static_assert)
*/
#include "Sample.h"
#include "MockDb.h"
#include <sqlpp11/functions.h>

View File

@ -23,6 +23,11 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* NOTE:
* This code must not compile (it is used to test a static_assert)
*/
#include "Sample.h"
#include "MockDb.h"
#include <sqlpp11/insert.h>

View File

@ -23,6 +23,11 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* NOTE:
* This code must not compile (it is used to test a static_assert)
*/
#include "Sample.h"
#include "MockDb.h"
#include <sqlpp11/update.h>

View File

@ -23,6 +23,11 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* NOTE:
* This code must not compile (it is used to test the absence of a conversion operator)
*/
#include "Sample.h"
#include "MockDb.h"
#include <sqlpp11/sqlpp11.h>

View File

@ -23,6 +23,11 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* NOTE:
* This code must not compile (it is used to test a static_assert)
*/
#include "Sample.h"
#include "MockDb.h"
#include <sqlpp11/insert.h>