mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
QL code and tests for C#/C++/JavaScript.
This commit is contained in:
19
cpp/ql/test/library-tests/noexcept/noexcept/noexcept.cpp
Normal file
19
cpp/ql/test/library-tests/noexcept/noexcept/noexcept.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
class T {
|
||||
};
|
||||
|
||||
void swap1(T &lhs, T &rhs);
|
||||
void swap2(T &lhs, T &rhs) noexcept;
|
||||
void swap3(T &lhs, T &rhs) noexcept(true);
|
||||
|
||||
int f(void) {
|
||||
return noexcept(1+2);
|
||||
}
|
||||
|
||||
#include "box.h"
|
||||
|
||||
void g() {
|
||||
box(12);
|
||||
box(13.4f);
|
||||
box("hello");
|
||||
}
|
||||
Reference in New Issue
Block a user