Home
last modified time | relevance | path

Searched refs:only (Results 1 – 25 of 3754) sorted by relevance

12345678910>>...151

/llvm-project-15.0.7/clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/
H A Dp6.cpp5 struct only { struct
6 only(T);
15 only<const char **> testP = p;
23 only<int> testC = c; in h()
32 only<int> testX = x; in p3example()
33 only<const int*> testV = v; in p3example()
34 only<const int> testU = u; in p3example()
35 only<double> testY = y; in p3example()
40 only<bool> testA = a; in f()
45 only<int> testA = a; in f()
[all …]
/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dunguarded-availability-new.m1 // RUN: %clang_cc1 -DMAC -triple x86_64-apple-macosx10.13 -fblocks -fsyntax-only -verify %s
18 // RUN: %clang_cc1 -DIOS -triple x86_64-apple-ios11 -fblocks -fsyntax-only -verify %s
23 // RUN: %clang_cc1 -DTVOS -triple x86_64-apple-tvos11 -fblocks -fsyntax-only -verify %s
28 // RUN: %clang_cc1 -DWATCHOS -triple i386-apple-watchos4 -fblocks -fsyntax-only -verify %s
126 // expected-warning@-6 {{'currentlyAvailable' is only available on iOS 11 or newer}}
129 // expected-warning@-9 {{'currentlyAvailable' is only available on tvOS 11 or newer}}
132 // expected-warning@-12 {{'currentlyAvailable' is only available on watchOS 4 or newer}}
139 // expected-warning@-3 {{'willBeAvailabile' is only available on macOS 10.14 or newer}}
142 // expected-warning@-6 {{'willBeAvailabile' is only available on iOS 12 or newer}}
145 // expected-warning@-9 {{'willBeAvailabile' is only available on tvOS 13 or newer}}
[all …]
H A Dattr-cf_returns.m1 // RUN: %clang_cc1 -verify -fsyntax-only -fobjc-arc -fblocks %s
13 int x CF_RETURNS_RETAINED; // expected-warning{{'cf_returns_retained' attribute only applies to fun…
14 int y CF_RETURNS_NOT_RETAINED; // expected-warning{{'cf_returns_not_retained' attribute only applie…
18 int invalid1(void) CF_RETURNS_RETAINED; // expected-warning{{'cf_returns_retained' attribute only a…
19 void invalid2(void) CF_RETURNS_RETAINED; // expected-warning{{'cf_returns_retained' attribute only
25 - (int)invalid1 CF_RETURNS_RETAINED; // expected-warning{{'cf_returns_retained' attribute only appl…
26 - (void)invalid2 CF_RETURNS_RETAINED; // expected-warning{{'cf_returns_retained' attribute only app…
31 …CF_RETURNS_RETAINED; // expected-warning{{'cf_returns_retained' attribute only applies to properti…
38 …CF_RETURNS_RETAINED, // expected-warning{{'cf_returns_retained' attribute only applies to pointer-…
39 …CF_RETURNS_RETAINED, // expected-warning{{'cf_returns_retained' attribute only applies to pointer-…
[all …]
H A Dunguarded-availability.m1 // RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -Wunguarded-availability -fblocks -fsyntax-only
56 …func_10_12(); // expected-warning{{'func_10_12' is only available on macOS 10.12 or newer}} expect…
59 …func_10_12(); // expected-warning{{'func_10_12' is only available on macOS 10.12 or newer}} expect…
77 int_10_12 bar; // expected-warning {{'int_10_12' is only available on macOS 10.12 or newer}}
119 …(void)s.m2; // expected-warning{{'m2' is only available on macOS 10.12 or newer}} expected-note{{@…
156 …ning{{'InterWithProp' is only available on macOS 10.12 or newer}} expected-note{{@available}} expe…
170 func_10_12(); // expected-warning {{'func_10_12' is only available on macOS 10.12 or newer}}
222 …ng{{'with_availability_attr<int>' is only available on macOS 10.11 or newer}} expected-warning{{'i…
279 new_int mem; // expected-warning{{'new_int' is only available on macOS 10.12 or newer}}
296 @property (class) new_int x; // expected-warning{{'new_int' is only available}}
[all …]
H A Ddllexport.m1 // RUN: %clang_cc1 -triple i686-windows -fdeclspec -fsyntax-only -verify %s
4 // expected-warning@-1{{'dllexport' attribute only applies to functions, variables, classes, and Ob…
6 // expected-warning@-1{{'dllexport' attribute only applies to}}
8 // expected-warning@-1{{'dllexport' attribute only applies to}}
10 // expected-warning@-1{{'dllexport' attribute only applies to}}
12 // expected-warning@-1{{'dllexport' attribute only applies to}}
14 // expected-warning@-1{{'dllexport' attribute only applies to}}
H A Ddllimport.m1 // RUN: %clang_cc1 -triple i686-windows -fdeclspec -fsyntax-only -verify %s
4 // expected-warning@-1{{'dllimport' attribute only applies to functions, variables, classes, and Ob…
6 // expected-warning@-1{{'dllimport' attribute only applies to}}
8 // expected-warning@-1{{'dllimport' attribute only applies to}}
10 // expected-warning@-1{{'dllimport' attribute only applies to}}
12 // expected-warning@-1{{'dllimport' attribute only applies to}}
14 // expected-warning@-1{{'dllimport' attribute only applies to}}
H A Dattr-swift-error.m1 // RUN: %clang_cc1 -verify -fsyntax-only -fobjc-arc -fblocks %s
38 // expected-error@-4 {{can only be applied}}
43 // expected-error@-4 {{can only be applied}}
47 // expected-error@-1 {{'__swift_error__' attribute can only be applied to a method with an error pa…
49 // expected-error@-1 {{'__swift_error__' attribute can only be applied to a method with an error pa…
51 // expected-error@-1 {{'__swift_error__' attribute can only be applied to a method with an error pa…
53 // expected-error@-1 {{'__swift_error__' attribute can only be applied to a method with an error pa…
84 // expected-error@-1 {{'__swift_error__' attribute can only be applied to a function with an error …
86 // expected-error@-1 {{'__swift_error__' attribute can only be applied to a function with an error …
88 // expected-error@-1 {{'__swift_error__' attribute can only be applied to a function with an error …
[all …]
H A Dattr-malloc.m1 // RUN: %clang_cc1 -verify -fsyntax-only -fblocks %s
4 - (id) test1 __attribute((malloc)); // expected-warning {{attribute only applies to functions}}
5 - (int) test2 __attribute((malloc)); // expected-warning {{attribute only applies to functions}}
13 __attribute((malloc)) id (*f)(void); // expected-warning {{attribute only applies to functions}}
14 __attribute((malloc)) bptr (*g)(void); // expected-warning {{attribute only applies to functions}}
15 __attribute((malloc)) void *(^h)(void); // expected-warning {{attribute only applies to functions}}
/llvm-project-15.0.7/clang/test/CXX/expr/expr.unary/expr.new/
H A Dp2-cxx0x.cpp4 struct only { struct
5 only(T);
6 template<typename U> only(U) = delete;
10 only<const int*> p = new const auto (0); in f()
11 only<double*> q = new (auto) (0.0); in f()
12 only<char*> r = new auto {'a'}; in f()
23 only<int*> r = new auto(1); in p2example()
26 only<char*> testX = x; in p2example()
/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A Dobjc-decls-inside-namespace.mm1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
5 @protocol P; //expected-error{{Objective-C declarations may only appear in global scope}}
7 @class Bar; //expected-error{{Objective-C declarations may only appear in global scope}}
9 @compatibility_alias Foo Bar; //expected-error{{Objective-C declarations may only appear in global …
11 @interface A //expected-error{{Objective-C declarations may only appear in global scope}}
14 @implementation A //expected-error{{Objective-C declarations may only appear in global scope}}
17 @protocol P //expected-error{{Objective-C declarations may only appear in global scope}}
20 @interface A(C) //expected-error{{Objective-C declarations may only appear in global scope}}
23 @implementation A(C) //expected-error{{Objective-C declarations may only appear in global scope}}
26 @interface B @end //expected-error{{Objective-C declarations may only appear in global scope}}
[all …]
H A Ddllexport.mm1 // RUN: %clang_cc1 -triple i686-windows -fdeclspec -fsyntax-only -verify %s
4 // expected-warning@-1{{'dllexport' attribute only applies to functions, variables, classes, and Ob…
6 // expected-warning@-1{{'dllexport' attribute only applies to functions, variables, classes, and Ob…
8 // expected-warning@-1{{'dllexport' attribute only applies to functions, variables, classes, and Ob…
10 // expected-warning@-1{{'dllexport' attribute only applies to functions, variables, classes, and Ob…
12 // expected-warning@-1{{'dllexport' attribute only applies to functions, variables, classes, and Ob…
15 // expected-warning@-1{{'dllexport' attribute only applies to functions, variables, classes, and Ob…
H A Ddllimport.mm1 // RUN: %clang_cc1 -triple i686-windows -fdeclspec -fsyntax-only -verify %s
4 // expected-warning@-1{{'dllimport' attribute only applies to functions, variables, classes, and Ob…
6 // expected-warning@-1{{'dllimport' attribute only applies to functions, variables, classes, and Ob…
8 // expected-warning@-1{{'dllimport' attribute only applies to functions, variables, classes, and Ob…
10 // expected-warning@-1{{'dllimport' attribute only applies to functions, variables, classes, and Ob…
12 // expected-warning@-1{{'dllimport' attribute only applies to functions, variables, classes, and Ob…
15 // expected-warning@-1{{'dllimport' attribute only applies to functions, variables, classes, and Ob…
/llvm-project-15.0.7/clang/test/SemaOpenCL/
H A Dfp64-fp16-options.cl1 // RUN: %clang_cc1 %s -triple spir-unknown-unknown -verify -pedantic -fsyntax-only -cl-std=CL1.0
2 // RUN: %clang_cc1 %s -triple spir-unknown-unknown -verify -pedantic -fsyntax-only -cl-std=CL1.1
3 // RUN: %clang_cc1 %s -triple spir-unknown-unknown -verify -fsyntax-only -cl-std=CL1.1 -DNOPEDANTIC
4 // RUN: %clang_cc1 %s -triple spir-unknown-unknown -verify -pedantic -fsyntax-only -cl-std=CL1.2 -D…
7 …1.0 -triple r600-unknown-unknown -target-cpu r600 -verify -pedantic -fsyntax-only -DNOFP64 -DNOFP16
8 … %s -triple r600-unknown-unknown -target-cpu r600 -verify -pedantic -fsyntax-only -DNOFP64 -DNOFP16
17 // RUN: %clang_cc1 %s -cl-std=CL1.0 -triple spir-unknown-unknown -verify -pedantic -fsyntax-only -c…
18 …td=CL1.0 -triple r600-unknown-unknown -target-cpu r600 -verify -pedantic -fsyntax-only -cl-ext=+all
21 // RUN: %clang_cc1 -cl-std=CL3.0 %s -triple spir-unknown-unknown -verify -pedantic -fsyntax-only -c…
45 // RUN: %clang_cc1 %s -triple amdgcn-unknown-unknown -verify -pedantic -fsyntax-only -cl-std=CL2.0 …
[all …]
/llvm-project-15.0.7/llvm/test/Linker/
H A Donly-needed-named-metadata.ll1 ; Without -only-needed we should lazy link linkonce globals, and the
3 ; RUN: llvm-link -S %S/Inputs/only-needed-named-metadata.ll %S/only-needed-named-metadata.ll | File…
7 ; With -only-needed the metadata references should not cause any of the
11 ; Note that doing -only-needed with the comdat shown below leads to a only
13 ; RUN: llvm-link -S -only-needed %S/Inputs/only-needed-named-metadata.ll %S/only-needed-named-metad…
14 ; RUN: llvm-link -S -internalize -only-needed %S/Inputs/only-needed-named-metadata.ll %S/only-neede…
H A Donly-needed-used.ll1 ; RUN: llvm-link -S %s %p/Inputs/only-needed-used.ll | FileCheck %s
2 ; RUN: llvm-link -S -internalize %s %p/Inputs/only-needed-used.ll | FileCheck %s
3 ; RUN: llvm-link -S -only-needed %s %p/Inputs/only-needed-used.ll | FileCheck %s
4 ; RUN: llvm-link -S -only-needed -internalize %s %p/Inputs/only-needed-used.ll | FileCheck %s
/llvm-project-15.0.7/clang/test/Sema/
H A Dobjc-bool-constant-conversion.m1 // RUN: %clang_cc1 %s -verify -fsyntax-only
15 …B = -1; // expected-warning{{implicit conversion from constant value -1 to 'BOOL'; the only well d…
16 …B = 0 - 1; // expected-warning{{implicit conversion from constant value -1 to 'BOOL'; the only wel…
17 …pected-warning {{implicit conversion from constant value 2 to 'BOOL'; the only well defined values…
20 …cted-warning 2 {{implicit conversion from constant value 2 to 'BOOL'; the only well defined values…
22 …pected-warning{{implicit conversion from constant value -1 to 'BOOL'; the only well defined values…
23 …cted-warning 2 {{implicit conversion from constant value 2 to 'BOOL'; the only well defined values…
26 …ected-warning {{implicit conversion from constant value 43 to 'BOOL'; the only well defined values…
28 …ected-warning{{implicit conversion from constant value 400 to 'BOOL'; the only well defined values…
36 …bp.b = 43; // expected-warning {{implicit conversion from constant value 43 to 'BOOL'; the only we…
[all …]
/llvm-project-15.0.7/flang/test/Semantics/
H A Dmodfile43.f907 use, intrinsic :: iso_fortran_env, only: int32
9 use, non_intrinsic :: iso_fortran_env, only: user_defined_123
12 use, intrinsic :: iso_fortran_env, only: int32
15 use, non_intrinsic :: iso_fortran_env, only: user_defined_123
18 use :: iso_fortran_env, only: user_defined_123
22 use, non_intrinsic :: ieee_arithmetic, only: ieee_selected_real_kind
/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/wasm/
H A Dbasic-only-section.test1 ## Test --only-section.
3 # RUN: llvm-objcopy --only-section=foo %t %t2
6 ## Test that it's the same with only-section + keep-section (for the same section).
7 # RUN: llvm-objcopy --only-section=foo --keep-section=foo %t %t2
10 ## Also test that only-section overrides remove-section.
11 # RUN: llvm-objcopy --only-section=foo --remove-section=foo %t %t2
14 ## This file has both known and custom sections. Check that only the foo section is left.
21 ## Test that only-section + keep-section keeps both sections.
22 # RUN: llvm-objcopy --only-section=foo --keep-section=linking %t %t2
H A Donly-keep-debug.test1 ## Test that only debug sections are kept with --only-keep-debug.
3 # RUN: llvm-strip --only-keep-debug %t
6 ## Test that keep-section overrides only-keep-debug.
8 # RUN: llvm-strip --only-keep-debug --keep-section=foo %t
11 ## Test that keep-section overrides only-keep-debug, even for known sections.
13 # RUN: llvm-strip --only-keep-debug --keep-section=TYPE %t
25 ## Test that remove-section overrides only-keep-debug.
27 # RUN: llvm-strip --only-keep-debug --remove-section=.debug_info %t
/llvm-project-15.0.7/clang/test/PCH/
H A Darc.m3 … -triple x86_64-apple-darwin11 -fobjc-arc -include %S/Inputs/arc.h -fsyntax-only -emit-llvm-only %s
7 …-fblocks -triple x86_64-apple-darwin11 -fobjc-arc -include-pch %t -fsyntax-only -emit-llvm-only %s
10 …1 -fblocks -triple x86_64-apple-darwin11 -include-pch %t -fsyntax-only -emit-llvm-only %s 2>&1 | F…
12 …-triple x86_64-apple-darwin11 -fobjc-arc -include-pch %t -fsyntax-only -emit-llvm-only %s 2>&1 | F…
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dtrailing-return-0x.cpp4 struct only struct
6 only(T) {} in only() argument
9 only(U) in only() argument
44 only<double> p1 = i(1.0);
71 only<int> p2 = xx.f(0L);
72 only<double> p3 = xx.g(0L, 1.0);
73 only<double> p4 = xx.get_nested<double>().h(0L, 1.0, 3.14f);
/llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/
H A Dxnack-subtarget-feature-any.ll1 ; RUN: llc -march=amdgcn -mcpu=gfx600 -debug-only=amdgpu-subtarget -o - %s 2>&1 | FileCheck --check…
2 ; RUN: llc -march=amdgcn -mcpu=gfx700 -debug-only=amdgpu-subtarget -o - %s 2>&1 | FileCheck --check…
3 ; RUN: llc -march=amdgcn -mcpu=gfx801 -debug-only=amdgpu-subtarget -o - %s 2>&1 | FileCheck --check…
4 ; RUN: llc -march=amdgcn -mcpu=gfx900 -debug-only=amdgpu-subtarget -o - %s 2>&1 | FileCheck --check…
5 ; RUN: llc -march=amdgcn -mcpu=gfx902 -debug-only=amdgpu-subtarget -o - %s 2>&1 | FileCheck --check…
6 ; RUN: llc -march=amdgcn -mcpu=gfx1010 -debug-only=amdgpu-subtarget -o - %s 2>&1 | FileCheck --chec…
7 ; RUN: llc -march=amdgcn -mcpu=gfx1100 -debug-only=amdgpu-subtarget -o - %s 2>&1 | FileCheck --chec…
/llvm-project-15.0.7/llvm/test/CodeGen/Mips/
H A Dbrind-tailcall.ll1 ; RUN: llc -mtriple=mips -debug-only=isel -mips-tail-calls=1 \
3 ; RUN: llc -mtriple=mips -debug-only=isel -mips-tail-calls=1 \
5 ; RUN: llc -mtriple=mips64 -debug-only=isel -mips-tail-calls=1 \
7 ; RUN: llc -mtriple=mips64 -debug-only=isel -mips-tail-calls=1 \
9 ; RUN: llc -mtriple=mips -debug-only=isel -mips-tail-calls=1 \
11 ; RUN: llc -mtriple=mips -debug-only=isel -mips-tail-calls=1 \
13 ; RUN: llc -mtriple=mips -mcpu=mips32r6 -debug-only=isel -mips-tail-calls=1 \
15 ; RUN: llc -mtriple=mips -mcpu=mips32r6 -debug-only=isel -mips-tail-calls=1 \
17 ; RUN: llc -mtriple=mips -debug-only=isel -mips-tail-calls=1 \
19 ; RUN: llc -mtriple=mips -debug-only=isel -mips-tail-calls=1 \
/llvm-project-15.0.7/clang/test/Frontend/
H A Dopencl.cl1 // RUN: %clang_cc1 %s -verify -fsyntax-only -DSYNTAX
2 // RUN: %clang_cc1 %s -verify -fsyntax-only -cl-std=CL1.1 -DSYNTAX
3 // RUN: %clang_cc1 %s -verify -fsyntax-only -cl-std=CL1.2 -DSYNTAX
4 // RUN: %clang_cc1 %s -verify -fsyntax-only -cl-std=CL2.0 -DSYNTAX
5 // RUN: %clang_cc1 %s -verify -fsyntax-only -cl-std=clc++1.0 -DSYNTAX
6 // RUN: %clang_cc1 %s -verify -fsyntax-only -fblocks -DBLOCKS -DSYNTAX
7 // RUN: %clang_cc1 %s -verify -fsyntax-only -cl-std=CL1.1 -fblocks -DBLOCKS -DSYNTAX
8 // RUN: %clang_cc1 %s -verify -fsyntax-only -cl-std=CL1.2 -fblocks -DBLOCKS -DSYNTAX
9 // RUN: %clang_cc1 %s -triple amdgcn--amdhsa -x c -std=c99 -verify -fsyntax-only -DSYNTAX
14 // RUN: %clang_cc1 %s -verify -fsyntax-only -cl-std=CL3.0 -cl-ext=-__opencl_c_device_enqueue -DSYNT…
/llvm-project-15.0.7/clang/test/Driver/
H A Dhip-output-file-name.hip20 // Output unbundled PPE for one GPU for device only compilation.
21 // RUN: %clang -### -E --cuda-device-only -target x86_64-linux-gnu \
35 // Output unbundled PPE for two GPUs for device only compilation.
36 // RUN: %clang -### -E --cuda-device-only -target x86_64-linux-gnu \
41 // RUN: %clang -### -E --cuda-device-only -target x86_64-linux-gnu \
46 // RUN: %clang -### -E --cuda-device-only -target x86_64-linux-gnu \
50 // Output unbundled PPE for host only compilation.
51 // RUN: %clang -### -E --cuda-host-only -target x86_64-linux-gnu \
73 // RUN: %clang -### -E -o test.cui --cuda-device-only -target x86_64-linux-gnu \
77 // Output unbundled PPE for two GPUs for device only compilation.
[all …]

12345678910>>...151