CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
72 lines
3.0 KiB
C++
72 lines
3.0 KiB
C++
// RUN: not %clang_cc1 -std=c++11 -triple x86_64-linux-gnu -fms-extensions -ast-dump -ast-dump-filter Test %s | FileCheck -check-prefix CHECK -strict-whitespace %s
|
|
|
|
namespace TestInvalidRParenOnCXXUnresolvedConstructExpr {
|
|
template <class T>
|
|
void f(T i, T j) {
|
|
return T (i, j;
|
|
}
|
|
}
|
|
|
|
// CHECK: NamespaceDecl {{.*}} <{{.*}}> {{.*}} TestInvalidRParenOnCXXUnresolvedConstructExpr
|
|
// CHECK-NEXT: `-FunctionTemplateDecl
|
|
// CHECK-NEXT: |-TemplateTypeParmDecl
|
|
// CHECK-NEXT: `-FunctionDecl
|
|
// CHECK-NEXT: |-ParmVarDecl
|
|
// CHECK-NEXT: |-ParmVarDecl
|
|
// CHECK-NEXT: `-CompoundStmt
|
|
// CHECK-NEXT: `-ReturnStmt
|
|
// CHECK-NEXT: `-CXXUnresolvedConstructExpr {{.*}} <col:10, col:16> 'T'
|
|
// CHECK-NEXT: |-DeclRefExpr {{.*}} <col:13> 'T' lvalue ParmVar {{.*}} 'i' 'T'
|
|
// CHECK-NEXT: `-DeclRefExpr {{.*}} <col:16> 'T' lvalue ParmVar {{.*}} 'j' 'T'
|
|
|
|
|
|
namespace TestInvalidIf {
|
|
int g(int i) {
|
|
if (invalid_condition)
|
|
return 4;
|
|
else
|
|
return i;
|
|
}
|
|
}
|
|
// CHECK: NamespaceDecl {{.*}} <{{.*}}> {{.*}} TestInvalidIf
|
|
// CHECK-NEXT: `-FunctionDecl
|
|
// CHECK-NEXT: |-ParmVarDecl
|
|
// CHECK-NEXT: `-CompoundStmt
|
|
// CHECK-NEXT: `-IfStmt {{.*}} <line:25:3, line:28:12>
|
|
// CHECK-NEXT: |-RecoveryExpr {{.*}} <line:25:7> 'bool'
|
|
// CHECK-NEXT: |-ReturnStmt {{.*}} <line:26:5, col:12>
|
|
// CHECK-NEXT: | `-IntegerLiteral {{.*}} <col:12> 'int' 4
|
|
// CHECK-NEXT: `-ReturnStmt {{.*}} <line:28:5, col:12>
|
|
// CHECK-NEXT: `-ImplicitCastExpr {{.*}} <col:12> 'int' <LValueToRValue>
|
|
// CHECK-NEXT: `-DeclRefExpr {{.*}} <col:12> 'int' lvalue ParmVar {{.*}} 'i' 'int'
|
|
|
|
namespace TestInvalidFunctionDecl {
|
|
struct Str {
|
|
double foo1(double, invalid_type);
|
|
};
|
|
double Str::foo1(double, invalid_type)
|
|
{ return 45; }
|
|
}
|
|
// CHECK: NamespaceDecl {{.*}} <{{.*}}> {{.*}} TestInvalidFunctionDecl
|
|
// CHECK-NEXT: |-CXXRecordDecl {{.*}} <line:44:1, line:46:1> line:44:8 referenced struct Str definition
|
|
// CHECK: | |-CXXRecordDecl {{.*}} <col:1, col:8> col:8 implicit struct Str
|
|
// CHECK-NEXT: | `-CXXMethodDecl {{.*}} <line:45:4, col:36> col:11 invalid foo1 'double (double, int)'
|
|
// CHECK-NEXT: | |-ParmVarDecl {{.*}} <col:16> col:22 'double'
|
|
// CHECK-NEXT: | `-ParmVarDecl {{.*}} <col:24, <invalid sloc>> col:36 invalid 'int'
|
|
// CHECK-NEXT: `-CXXMethodDecl {{.*}} parent {{.*}} <line:47:1, line:48:14> line:47:13 invalid foo1 'double (double, int)'
|
|
// CHECK-NEXT: |-ParmVarDecl {{.*}} <col:18> col:24 'double'
|
|
// CHECK-NEXT: |-ParmVarDecl {{.*}} <col:26, <invalid sloc>> col:38 invalid 'int'
|
|
// CHECK-NEXT: `-CompoundStmt {{.*}} <line:48:1, col:14>
|
|
// CHECK-NEXT: `-ReturnStmt {{.*}} <col:3, col:10>
|
|
// CHECK-NEXT: `-ImplicitCastExpr {{.*}} <col:10> 'double' <IntegralToFloating>
|
|
// CHECK-NEXT: `-IntegerLiteral {{.*}} <col:10> 'int' 45
|
|
|
|
namespace TestAliasTemplateDecl {
|
|
template<typename T> class A;
|
|
|
|
template<typename T>
|
|
template<typename U> using InvalidAlias = A<U>;
|
|
// CHECK: TypeAliasTemplateDecl {{.*}} invalid InvalidAlias
|
|
// CHECK-NEXT: |-TemplateTypeParmDecl {{.*}} typename depth 1 index 0 U
|
|
}
|