diff options
-rw-r--r-- | 3p36.cpp | 6 | ||||
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | UBasan-test.cpp | 15 |
3 files changed, 18 insertions, 7 deletions
@@ -8,11 +8,7 @@ * * 3.36 * - * I found a little bit of strangeness when comparing the vectors with '==' - * If i input for example 5 1's to the first vector - * and then i enter maybe 2 1's to the 2nd vector - * and then afterwards hit CTRL+D, the vector evaluates - * as equal... Not sure if it's supposed to be like this, they clearly aren't the same... + * */ int main () { @@ -1,7 +1,7 @@ CC1=clang++ CC2=g++ -CFLAGS_CLANG=-O0 -Wfatal-errors -Wall -Werror -Wextra -g3 -fsanitize=address -fsanitize=leak -Wpedantic -Wformat=2 -Wshadow -fno-common -std=c++2b -CFLAGS_GCC=-O0 -Wfatal-errors -Wall -Werror -Wextra -g3 -fsanitize=address -fsanitize=leak -Wpedantic -Wformat=2 -Wshadow -fno-common -std=c++2b -Wformat-truncation=2 -Wformat-overflow +CFLAGS_CLANG=-O0 -Wfatal-errors -Wall -Werror -Wextra -g3 -fsanitize=address,leak,undefined -Wpedantic -Wformat=2 -Wshadow -fno-common -std=c++2b +CFLAGS_GCC=-O0 -Wfatal-errors -Wall -Werror -Wextra -g3 -fsanitize=address,leak,undefined -Wpedantic -Wformat=2 -Wshadow -fno-common -std=c++2b -Wformat-truncation=2 -Wformat-overflow BINDIR=bin SRCS=$(wildcard *.cpp) OBJS_CLANG=$(patsubst %.cpp, $(BINDIR)/clang/%, $(SRCS)) diff --git a/UBasan-test.cpp b/UBasan-test.cpp new file mode 100644 index 0000000..a2d68f5 --- /dev/null +++ b/UBasan-test.cpp @@ -0,0 +1,15 @@ +#include <iostream> +#include <vector> +#include "sales_data.hpp" +#include "sales_item.hpp" + +/* + * + * + * + * + */ + +int main () { + return 0; +} |